Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (59 loc) · 1.78 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (59 loc) · 1.78 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
53
54
55
56
57
58
59
60
61
62
services:
sandbox-oj:
build: .
container_name: sandbox-oj
privileged: true
#cgroup: host
ports:
- "8000:8000"
volumes:
- .:/sandbox
- ./logs:/sandbox/logs
- /var/run/docker.sock:/var/run/docker.sock
environment:
- TZ=Asia/Taipei
- SANDBOX_API_KEY=${SANDBOX_API_KEY:-}
- SANDBOX_WORKERS=${SANDBOX_WORKERS:-24}
# 後端連線設定 (從 .env 讀取,留空則只使用本地題包)
- BACKEND_API_URL=${BACKEND_API_URL:-}
- SANDBOX_TOKEN=${SANDBOX_TOKEN:-}
# LLM-as-Judge 設定
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- OPENAI_BASE_URL=${OPENAI_BASE_URL:-https://api.openai.com/v1}
- LLM_JUDGE_MODEL=${LLM_JUDGE_MODEL:-gpt-4o-mini}
# Sidecar 資料庫預設密碼
- SIDECAR_DB_PASSWORD=${SIDECAR_DB_PASSWORD:-sandbox_db_pass}
restart: unless-stopped
depends_on:
- static-analysis
static-analysis:
build: ./static-analysis-service
container_name: static-analysis
ports:
- "8001:8000" # Map host 8001 to container 8000 to avoid conflict
environment:
- TZ=Asia/Taipei
- SANDBOX_API_KEY=${SANDBOX_API_KEY:-}
restart: unless-stopped
llm-test-data:
build: ./llm-test-data-service
container_name: llm-test-data
ports:
- "8787:8787"
environment:
- TZ=Asia/Taipei
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- OPENAI_BASE_URL=${OPENAI_BASE_URL:-https://api.openai.com/v1}
- OPENAI_MODEL=${OPENAI_MODEL:-gpt-4o-mini}
restart: unless-stopped
portal:
build: ./portal-service
container_name: portal
ports:
- "9999:9999"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- TZ=Asia/Taipei
- HOST_IP=${HOST_IP:-localhost}
restart: unless-stopped