-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 973 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 973 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
44
45
46
47
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
env_file:
- ./backend/.env
environment:
- ENVIRONMENT=production
- ALLOWED_ORIGINS=["http://localhost:3000"]
- DATABASE_URL=sqlite:///./data/financial_dashboard.db
volumes:
- db_data:/app/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
networks:
- dashboard_net
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- NEXT_PUBLIC_API_URL=http://localhost:8000
ports:
- "3000:3000"
depends_on:
backend:
condition: service_healthy
environment:
- NODE_ENV=production
- NEXT_TELEMETRY_DISABLED=1
networks:
- dashboard_net
networks:
dashboard_net:
driver: bridge
volumes:
db_data: