-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 855 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 855 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
version: "3.9"
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: dutysync_backend
restart: unless-stopped
environment:
- DATABASE_URL=sqlite:////app/data/dutysync.db
volumes:
- dutysync_data:/app/data
ports:
- "8000:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
interval: 30s
timeout: 10s
retries: 3
networks:
- dutysync_net
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: dutysync_frontend
restart: unless-stopped
ports:
- "80:80"
depends_on:
backend:
condition: service_healthy
networks:
- dutysync_net
volumes:
dutysync_data:
driver: local
networks:
dutysync_net:
driver: bridge