-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 872 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 872 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
services:
backend:
build: ./backend
ports:
- "5000:5000"
volumes:
- ./backend:/app
- /app/venv
environment:
- FLASK_ENV=development
- FLASK_APP=app.py
- FLASK_DEBUG=1
- PYTHONUNBUFFERED=1
networks:
- app-network
env_file:
- ./backend/.env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/api/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
restart: unless-stopped
frontend:
build: ./frontend
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- VITE_API_URL=http://backend:5000
networks:
- app-network
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
networks:
app-network:
driver: bridge