-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (53 loc) · 1.69 KB
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (53 loc) · 1.69 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
services:
api:
build: .
container_name: bugtrace_api
init: true # run tini so orphaned chromium procs get reaped (no zombie pile-up)
shm_size: 2gb # chromium renderers use /dev/shm; the 64MB default exhausts -> renderer wedge -> hang
ports:
- "8000:8000"
volumes:
- cli-scans:/app/scans
- cli-reports:/app/reports
- cli-db:/app/data
- cli-logs:/app/logs # persist scanner logs (execution.log / bugtrace.jsonl / errors.log) across rebuilds — enables saturation/timeout forensics
- /var/run/docker.sock:/var/run/docker.sock
- ./.env:/app/.env # bind the host .env so Provider-tab key changes (update_env_var writes /app/.env) persist across restarts
env_file:
- .env
environment:
BUGTRACE_CORS_ORIGINS: ${BUGTRACE_CORS_ORIGINS:-http://localhost:5173,http://localhost:6869}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: unless-stopped
mcp:
build: .
container_name: bugtrace_mcp
command: ["mcp", "--sse", "--host", "0.0.0.0", "--port", "8001"]
ports:
- "8001:8001"
volumes:
- cli-reports:/app/reports
- cli-logs:/app/logs
- cli-db:/app/data
env_file:
- .env
depends_on:
api:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sS -m 2 http://localhost:8001/sse >/dev/null; res=$$?; [ $$res -eq 0 ] || [ $$res -eq 28 ] || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
restart: unless-stopped
volumes:
cli-scans:
cli-reports:
cli-logs:
cli-db: