-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.08 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.08 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
services:
frontend:
build:
context: "./"
dockerfile: "./docker/react/Dockerfile"
env_file:
- "./client/.env"
ports:
- "${DOCKER_WEB_PORT_FORWARD:-127.0.0.1:5173}:80"
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
depends_on:
mongodb:
condition: service_healthy
networks:
- app_network
backend:
build:
context: "."
dockerfile: "./docker/flask/Dockerfile"
env_file:
- "/server/.env"
ports:
- "${PORT:-5002}:5000"
depends_on:
- mongodb
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
networks:
- app_network
mongodb:
image: "mongo:6"
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: root
MONGO_INITDB_DATABASE: test
ports:
- "27017:27017"
networks:
- app_network
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 3
volumes:
mongo_data:
networks:
app_network:
driver: bridge