-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
43 lines (40 loc) · 1023 Bytes
/
docker-compose.prod.yml
File metadata and controls
43 lines (40 loc) · 1023 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
37
38
39
40
41
42
43
services:
backend:
build:
context: .
dockerfile: ./packages/backend/Dockerfile.prod
container_name: aim-red-backend-prod
ports:
- "8000:8000"
volumes:
# Only mount the projects directory for persistent storage
# No source code mounting in production
- ./packages/backend/projects:/app/projects
environment:
- PYTHONUNBUFFERED=1
networks:
- aim-red-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
frontend:
build:
context: .
dockerfile: ./packages/frontend/Dockerfile.prod
container_name: aim-red-frontend-prod
ports:
- "80:80"
environment:
- VITE_API_URL=/api
depends_on:
- backend
networks:
- aim-red-network
restart: unless-stopped
networks:
aim-red-network:
driver: bridge