-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (30 loc) · 864 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (30 loc) · 864 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
services:
backend:
build: ./backend
ports:
- "5000:5000"
environment:
- FRONTEND_URL=http://localhost:3000
- OXYLABS_RESIDENTIAL_USERNAME=${OXYLABS_RESIDENTIAL_USERNAME:-}
- OXYLABS_RESIDENTIAL_PASSWORD=${OXYLABS_RESIDENTIAL_PASSWORD:-}
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
- DATABASE_URL=file:/app/data/transcripts.db
volumes:
- sqlite-data:/app/data
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
volumes:
sqlite-data: