-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
91 lines (84 loc) · 1.83 KB
/
docker-compose.yml
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
82
83
84
85
86
87
88
89
90
91
version: '3'
services:
mongo-db:
image: mpogonaru/bd_event-reporter_mongo:latest
networks:
- main-network
volumes:
- "mongo-db-data:/data/db"
deploy:
restart_policy:
condition: on-failure
max_attempts: 5
event-reporter:
image: mpogonaru/bd_event-reporter_app:latest
networks:
- main-network
deploy:
replicas: 4
restart_policy:
condition: on-failure
max_attempts: 5
depends_on:
- mongo-db
auth-db:
image: mpogonaru/bd_event-reporter_auth-db:latest
networks:
- auth-network
volumes:
- "auth-db-data:/var/lib/mysql"
environment:
- MYSQL_ROOT_PASSWORD=1
- MYSQL_DATABASE=event_reporter
# - TZ='Europe/Bucharest'
deploy:
restart_policy:
condition: on-failure
max_attempts: 5
auth-service:
image: mpogonaru/bd_event-reporter_auth-service:latest
networks:
- auth-network
deploy:
restart_policy:
condition: on-failure
max_attempts: 5
depends_on:
- auth-db
nginx:
image: mpogonaru/bd_event-reporter_nginx:latest
ports:
- "80:80"
networks:
- auth-network
- main-network
deploy:
restart_policy:
condition: on-failure
max_attempts: 5
placement:
constraints:
- node.role == manager
depends_on:
- auth-service
- event-reporter
visualizer:
image: dockersamples/visualizer:stable
ports:
- "9000:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
stop_grace_period: 30s
deploy:
restart_policy:
condition: on-failure
max_attempts: 5
placement:
constraints:
- node.role == manager
networks:
auth-network:
main-network:
volumes:
auth-db-data:
mongo-db-data: