-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-stack.yml
More file actions
188 lines (174 loc) · 4.96 KB
/
Copy pathdocker-stack.yml
File metadata and controls
188 lines (174 loc) · 4.96 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
version: "3"
services:
mysql:
image: mysql:latest
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=password
volumes:
- ./dolphindb:/docker-entrypoint-initdb.d
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- 'node.role == manager'
mongo:
image: mongo:5.0
container_name: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password
ports:
- "27017:27017"
volumes:
- ./mongo/db:/data/db
- ./mongo/dev.archive:/Databases/dev.archive
- ./mongo/production:/Databases/production
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- 'node.role == manager'
mongo-express:
image: mongo-express
container_name: mexpress
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=root
- ME_CONFIG_MONGODB_ADMINPASSWORD=password
- ME_CONFIG_MONGODB_URL=mongodb://root:password@mongo:27017/?authSource=admin
- ME_CONFIG_BASICAUTH_USERNAME=mexpress
- ME_CONFIG_BASICAUTH_PASSWORD=mexpress
ports:
- "8081:8081"
deploy:
restart_policy:
condition: on-failure
eureka-server:
image: registry-image
ports:
- "8888:8888"
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- 'node.role == manager'
gateway-service:
image: gateway-image
ports:
- "7778:7778"
environment:
profile: "default"
eureka.client.serviceUrl.defaultZone: "http://eureka-server:8888/eureka"
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- 'node.role == manager'
ms-auth-service:
image: madd47emz/wathaequi:ms-auth
environment:
profile: "default"
eureka.client.serviceUrl.defaultZone: "http://eureka-server:8888/eureka"
spring.datasource.url: jdbc:mysql://mysql:3306/users
spring.datasource.password: password
deploy:
replicas: 2
update_config:
parallelism: 2
failure_action: rollback
placement:
constraints:
- 'node.role == worker'
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
ms-demande-service:
image: madd47emz/wathaequi:ms-demande-management
environment:
profile: "default"
eureka.client.serviceUrl.defaultZone: "http://eureka-server:8888/eureka"
spring.datasource.url: jdbc:mysql://mysql:3306/demandes
spring.datasource.password: password
deploy:
replicas: 2
update_config:
parallelism: 2
failure_action: rollback
placement:
constraints:
- 'node.role == worker'
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
restart: on-failure
ms-gestion-document-service:
image: madd47emz/wathaequi:ms-document-management
environment:
profile: "default"
eureka.client.serviceUrl.defaultZone: "http://eureka-server:8888/eureka"
spring.data.mongodb.host: "mongo"
spring.data.mongodb.port: 27017
spring.data.mongodb.database: gestion-document
deploy:
replicas: 2
update_config:
parallelism: 2
failure_action: rollback
placement:
constraints:
- 'node.role == worker'
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
restart: on-failure
ms-notification-service:
image: madd47emz/wathaequi:ms-citizen-notification
environment:
profile: "default"
eureka.client.serviceUrl.defaultZone: "http://eureka-server:8888/eureka"
spring.datasource.url: jdbc:mysql://mysql:3306/notifications
spring.datasource.password: password
deploy:
update_config:
failure_action: rollback
placement:
constraints:
- 'node.role == worker'
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
restart: on-failure
ms-citizen-social-service:
image: madd47emz/wathaequi:ms-citizen-social
environment:
profile: "default"
eureka.client.serviceUrl.defaultZone: "http://eureka-server:8888/eureka"
spring.datasource.url: jdbc:mysql://mysql:3306/citizen_social
spring.datasource.password: password
deploy:
replicas: 2
update_config:
parallelism: 2
failure_action: rollback
placement:
constraints:
- 'node.role == worker'
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
restart: on-failure