-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
52 lines (48 loc) · 1.13 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
52 lines (48 loc) · 1.13 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
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
environment:
- LLM_API_KEY=${LLM_API_KEY}
- LLM_MODEL=${LLM_MODEL:-gpt-4}
- LLM_BASE_URL=${LLM_BASE_URL}
- DATABASE_URL=${DATABASE_URL:-sqlite+aiosqlite:///./feedback_triage.db}
- SQL_DEBUG=false
volumes:
- backend_data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:8000/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
environment:
- API_URL=${API_URL:-http://backend:8000}
- NODE_ENV=production
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/nginx/ssl:ro
depends_on:
- frontend
- backend
restart: unless-stopped
volumes:
backend_data:
networks:
default:
driver: bridge