-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
100 lines (95 loc) · 2.46 KB
/
docker-compose.yml
File metadata and controls
100 lines (95 loc) · 2.46 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
services:
api:
build:
context: .
dockerfile: Dockerfile.api
ports:
- "8000:8000"
env_file: .env
environment:
- DATABASE_PATH=/data/db/dashboard.db
- OUTPUT_DIR=/data/output
- CORS_ORIGINS=http://localhost:3001
- CARDIGAN_API_KEY=${CARDIGAN_API_KEY}
- TRANSCRIPTS_DIR=/data/transcripts
volumes:
- db-data:/data/db
- output-data:/data/output
- transcript-data:/data/transcripts
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/system/health')"]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
worker:
build:
context: .
dockerfile: Dockerfile.worker
env_file: .env
environment:
- DATABASE_PATH=/data/db/dashboard.db
- OUTPUT_DIR=/data/output
- CARDIGAN_API_KEY=${CARDIGAN_API_KEY}
- TRANSCRIPTS_DIR=/data/transcripts
volumes:
# NOTE: SQLite shared via volume between api + worker. WAL mode handles
# concurrent access adequately for low-throughput workloads. Consider
# PostgreSQL if write contention becomes an issue.
- db-data:/data/db
- output-data:/data/output
- transcript-data:/data/transcripts
depends_on:
api:
condition: service_healthy
web:
build:
context: .
dockerfile: Dockerfile.web
ports:
- "3001:3000"
environment:
- CARDIGAN_API_KEY=${CARDIGAN_API_KEY}
depends_on:
- api
mcp:
build:
context: .
dockerfile: Dockerfile.api
command: ["python", "-m", "mcp_server.server"]
ports:
- "8080:8080"
env_file: .env
environment:
- MCP_TRANSPORT=http
- EDITORIAL_API_URL=http://api:8000
- DATABASE_PATH=/data/db/dashboard.db
- OUTPUT_DIR=/data/output
- TRANSCRIPTS_DIR=/data/transcripts
volumes:
- db-data:/data/db
- output-data:/data/output
- transcript-data:/data/transcripts
depends_on:
api:
condition: service_healthy
profiles:
- mcp
restart: unless-stopped
tunnel:
image: cloudflare/cloudflared:latest
command: tunnel --no-autoupdate run
environment:
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
depends_on:
api:
condition: service_healthy
web:
condition: service_started
profiles:
- tunnel
restart: unless-stopped
volumes:
db-data:
output-data:
transcript-data: