File size: 431 Bytes
0731c95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version: '3.8'

services:
  ki2api:
    build: .
    ports:
      - "8989:8989"
    environment:
      - API_KEY=ki2api-key-2024
    volumes:
      # 自动挂载token目录,实现零配置
      - ~/.aws/sso/cache:/root/.aws/sso/cache:ro
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8989/health"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s