Files
gpt-load/docker-compose.yml
2025-06-07 12:30:35 +08:00

26 lines
533 B
YAML

version: "3.8"
services:
gpt-load:
image: ghcr.io/tbphp/gpt-load:latest
container_name: gpt-load
ports:
- "3000:3000"
volumes:
# 挂载密钥文件(只读)
- ./keys.txt:/app/keys.txt:ro
# 挂载配置文件(只读)
- ./.env:/app/.env:ro
restart: unless-stopped
# 健康检查
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
env_file:
- .env