-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (45 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (45 loc) · 1.01 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
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- frontend
- backend
restart: unless-stopped
backend:
build: ./backend
ports:
- "8080:8000"
env_file:
- ./backend/.env
environment:
- PORT=8000
volumes:
- ./backend:/app
- /app/admin_dashboard/dist
- /app/admin_dashboard/node_modules
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend:
build: ./frontend
ports:
- "5173:5173"
environment:
- BACKEND_URL=http://backend:8000
volumes:
- ./frontend:/app
- /app/node_modules
command: npm run dev -- --host
depends_on:
backend:
condition: service_healthy
restart: unless-stopped