-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
389 lines (364 loc) · 7.56 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
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
version: '3.7'
services:
consul:
image: consul
hostname: consul
restart: on-failure
volumes:
- consul:/consul/data
networks:
- barista
ports:
- "8500:8500" #DEV
environment:
- CONSUL_LOCAL_CONFIG={"log_level":"warn"}
db:
hostname: db
image: mariadb
restart: on-failure
networks:
- barista
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PW}
- MYSQL_ROOT_HOST=%
adminer:
image: adminer
restart: on-failure
networks:
- barista
depends_on:
- db
ports:
- "8885:8080"
rabbit:
image: rabbitmq:3.7-management
hostname: rabbit
networks:
- barista
restart: on-failure
ports:
- "8886:15672"
volumes:
- ./cfg/rabbitmq_enabled_plugins:/etc/rabbitmq/enabled_plugins
- ./cfg/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
seq:
image: datalust/seq:latest
hostname: seq
restart: on-failure
networks:
- barista
ports:
- "8887:80"
volumes:
- seq:/data
environment:
ACCEPT_EULA: Y
fabio:
hostname: fabio
image: magiconair/fabio
networks:
- barista
depends_on:
- consul
- seq
- rabbit
restart: on-failure
volumes:
- ./cfg/fabio.properties:/etc/fabio/fabio.properties
spa-service:
image: ${DOCKER_IMAGE}:spa
networks:
- barista
build:
context: ./baristaspa2
dockerfile: Dockerfile
restart: on-failure
depends_on: #DEV
- api-service
volumes:
- ./cfg/baristaspa2.env:/app/.env
external-service:
image: ${DOCKER_IMAGE}:external
build:
context: ./ExternalEndpoint
dockerfile: Dockerfile
restart: on-failure
ports:
- "8080:80"
networks:
- webproxy
- barista
depends_on:
- api-service
- spa-service
volumes:
- ./cfg/ExternalEndpoint.nginx.conf:/etc/nginx/nginx.conf
api-service:
image: ${DOCKER_IMAGE}:api
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.Api/Dockerfile
networks:
- barista
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
- fabio
volumes:
- ./cfg/api.json:/app/appsettings.json
accounting-service:
image: ${DOCKER_IMAGE}:accounting
networks:
- barista
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.Accounting/Dockerfile
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
volumes:
- ./cfg/accounting.json:/app/appsettings.json
accounting-groups-service:
image: ${DOCKER_IMAGE}:accountinggroups
networks:
- barista
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.AccountingGroups/Dockerfile
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
volumes:
- ./cfg/accountinggroups.json:/app/appsettings.json
consistency-service:
image: ${DOCKER_IMAGE}:consistency
networks:
- barista
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.Consistency/Dockerfile
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
volumes:
- ./cfg/consistency.json:/app/appsettings.json
identity-service:
image: ${DOCKER_IMAGE}:identity
networks:
- barista
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.Identity/Dockerfile
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
volumes:
- ./cfg/identity.json:/app/appsettings.json
mqtt-service:
image: ${DOCKER_IMAGE}:mqtt
networks:
- barista
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.Mqtt/Dockerfile
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
volumes:
- ./cfg/mqtt.json:/app/appsettings.json
offers-service:
image: ${DOCKER_IMAGE}:offers
networks:
- barista
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.Offers/Dockerfile
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
volumes:
- ./cfg/offers.json:/app/appsettings.json
operations-service:
image: ${DOCKER_IMAGE}:operations
networks:
- barista
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.Operations/Dockerfile
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
volumes:
- ./cfg/operations.json:/app/appsettings.json
points-of-sale-service:
image: ${DOCKER_IMAGE}:pointsofsale
networks:
- barista
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.PointsOfSale/Dockerfile
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
volumes:
- ./cfg/pointsofsale.json:/app/appsettings.json
products-service:
image: ${DOCKER_IMAGE}:products
networks:
- barista
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.Products/Dockerfile
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
volumes:
- ./cfg/products.json:/app/appsettings.json
sale-strategies-service:
image: ${DOCKER_IMAGE}:salestrategies
networks:
- barista
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.SaleStrategies/Dockerfile
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
volumes:
- ./cfg/salestrategies.json:/app/appsettings.json
stock-items-service:
image: ${DOCKER_IMAGE}:stockitems
networks:
- barista
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.StockItems/Dockerfile
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
volumes:
- ./cfg/stockitems.json:/app/appsettings.json
stock-operations-service:
image: ${DOCKER_IMAGE}:stockoperations
networks:
- barista
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.StockOperations/Dockerfile
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
volumes:
- ./cfg/stockoperations.json:/app/appsettings.json
swipe-service:
image: ${DOCKER_IMAGE}:swipe
networks:
- barista
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.Swipe/Dockerfile
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
volumes:
- ./cfg/swipe.json:/app/appsettings.json
users-service:
image: ${DOCKER_IMAGE}:users
networks:
- barista
build:
args:
sourceimage: ${DOCKER_IMAGE}
context: .
dockerfile: Barista.Users/Dockerfile
restart: on-failure
depends_on:
- consul
- rabbit
- db
- seq
volumes:
- ./cfg/users.json:/app/appsettings.json
volumes:
consul:
driver: local
seq:
driver: local
rabbit:
driver: local
networks:
barista:
driver: bridge
webproxy:
external:
name: webproxy