-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
81 lines (72 loc) · 1.65 KB
/
docker-compose.dev.yml
File metadata and controls
81 lines (72 loc) · 1.65 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.8'
services:
db:
image: mongo:8.0
container_name: nsql1h26-kitch_mongodb
ports:
- "27017:27017"
volumes:
- mongodb-data:/data/db
- mongodb-config:/data/configdb
env_file: .env
restart: unless-stopped
networks:
- app-net
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 10s
retries: 5
start_period: 10s
backend:
image: nsql1h26-kitch_backend-python-fastapi:v.0.5
build:
context: ./backend
dockerfile: Dockerfile
container_name: nsql1h26-kitch_backend-python-fastapi
ports:
- "8000:8000"
restart: unless-stopped
env_file: .env
depends_on:
db:
condition: service_healthy
networks:
- app-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 10s
timeout: 10s
retries: 5
start_period: 10s
frontend:
image: nsql1h26-kitch_frontend-nginx-react:v.0.5
build:
context: ./frontend
dockerfile: Dockerfile
container_name: nsql1h26-kitch_frontend-nginx-react
restart: unless-stopped
env_file: .env
ports:
- "80:80"
volumes:
- ./frontend/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
backend:
condition: service_healthy
networks:
- app-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 10s
timeout: 10s
retries: 5
start_period: 10s
volumes:
mongodb-data:
driver: local
mongodb-config:
driver: local
networks:
app-net:
driver: bridge