-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (26 loc) · 873 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
26 lines (26 loc) · 873 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
services:
atomcode2api:
build: .
container_name: atomcode2api
restart: unless-stopped
ports:
- "3456:3456"
volumes:
- ./data:/app/data
environment:
- PORT=3456
- API_KEY=${API_KEY:-}
- DASHBOARD_PASSWORD=${DASHBOARD_PASSWORD:-}
- LOG_LEVEL=${LOG_LEVEL:-info}
- ATOMCODE_PLATFORM_SERVER=${ATOMCODE_PLATFORM_SERVER:-https://acs.atomgit.com}
- ATOMCODE_CODINGPLAN_API_BASE=${ATOMCODE_CODINGPLAN_API_BASE:-https://api.gitcode.com/api/v5}
- AUTO_CLAIM_PRO=${AUTO_CLAIM_PRO:-false}
- MONITOR_INTERVAL=${MONITOR_INTERVAL:-300000}
- MONITOR_WEBHOOK=${MONITOR_WEBHOOK:-}
- MONITOR_WARN_PERCENT=${MONITOR_WARN_PERCENT:-80}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3456/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s