-
Notifications
You must be signed in to change notification settings - Fork 183
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 893 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
31 lines (30 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
services:
kiro2api:
image: ghcr.io/caidaoli/kiro2api:latest
container_name: kiro2api
restart: unless-stopped
ports:
- "8080:8080"
environment:
# Token配置 (JSON格式,支持多账号池和双认证方式)
- KIRO_AUTH_TOKEN=${KIRO_AUTH_TOKEN}
# 客户端认证Token
- KIRO_CLIENT_TOKEN=${KIRO_CLIENT_TOKEN:-123456}
# 服务配置
- PORT=${PORT:-8080}
- GIN_MODE=${GIN_MODE:-release}
# 日志配置
- LOG_LEVEL=${LOG_LEVEL:-info}
- LOG_FORMAT=${LOG_FORMAT:-json}
- LOG_CONSOLE=${LOG_CONSOLE:-true}
- LOG_FILE=${LOG_FILE:-}
volumes:
- aws_sso_cache:/home/appuser/.aws/sso/cache
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/v1/models"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
aws_sso_cache: