-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
67 lines (62 loc) · 1.28 KB
/
docker-compose.yaml
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
services:
mongo:
image: mongo
container_name: gnn_mongo
restart: on-failure
volumes:
- gnn_mongo:/data/db
networks:
- gnn_network
mongo_dash:
container_name: gnn_mongo_dash
restart: on-failure
image: mongo-express
ports:
- "8002:8002"
networks:
- gnn_network
environment:
- PORT=8002
- ME_CONFIG_OPTIONS_EDITORTHEME=ambiance
- ME_CONFIG_BASICAUTH_USERNAME=hossara
- ME_CONFIG_BASICAUTH_PASSWORD=1234
- ME_CONFIG_MONGODB_URL=mongodb://gnn_mongo:27017
depends_on:
- mongo
backend:
container_name: gnn_backend
restart: on-failure
build: ./backend
ports:
- "8081:8081"
networks:
- gnn_network
volumes:
- ./backend:/app
depends_on:
- mongo
- mongo_dash
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081/health"]
interval: 10s
timeout: 14s
retries: 5
frontend:
container_name: gnn_frontend
restart: on-failure
build: ./frontend
ports:
- "3002:3000"
networks:
- gnn_network
volumes:
- ./frontend:/app
depends_on:
backend:
condition: service_healthy
networks:
gnn_network:
name: gnn_network
volumes:
gnn_mongo:
external: true