-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 860 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (34 loc) · 860 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
27
28
29
30
31
32
33
34
35
36
services:
backend:
build: ./backend
ports:
- "5000:5000"
volumes:
- caption-data:/app/data
environment:
- FRONTEND_URL=http://localhost:3000
- MAX_FILE_SIZE_MB=500
- MAX_CONCURRENT_JOBS=2
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/api/health')"]
interval: 30s
timeout: 5s
retries: 3
restart: unless-stopped
frontend:
build: ./frontend
ports:
- "3000:3000"
environment:
- BACKEND_URL=http://backend:5000
- NEXT_PUBLIC_BACKEND_URL=http://localhost:5000
- DATABASE_URL=file:/app/data/captions.db
volumes:
- sqlite-data:/app/data
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
volumes:
caption-data:
sqlite-data: