-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.17 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# ============================================================
# JudgeAI Docker Compose 配置
# 启动命令: docker compose up -d
# 查看日志: docker compose logs -f judgeai-api
# ============================================================
services:
judgeai-api:
build:
context: .
dockerfile: Dockerfile
container_name: judgeai-api
ports:
- "5000:5000"
env_file:
- .env
environment:
- FLASK_ENV=${FLASK_ENV:-production}
- FLASK_DEBUG=${FLASK_DEBUG:-false}
- GUNICORN_WORKERS=${GUNICORN_WORKERS:-4}
volumes:
- judgeai-data:/app/uploads
- judgeai-logs:/app/logs
- judgeai-reports:/app/reports
networks:
- judgeai-net
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
start_period: 15s
retries: 3
deploy:
resources:
limits:
memory: 1G
cpus: "2.0"
reservations:
memory: 256M
networks:
judgeai-net:
driver: bridge
volumes:
judgeai-data:
driver: local
judgeai-logs:
driver: local
judgeai-reports:
driver: local