-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
408 lines (388 loc) · 11.6 KB
/
Copy pathdocker-compose.yml
File metadata and controls
408 lines (388 loc) · 11.6 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
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
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
services:
rabbitmq:
build:
context: ./rabbitmq
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_APP_PASSWORD=${RABBITMQ_APP_PASSWORD}
- RABBITMQ_ADMIN_PASSWORD=${RABBITMQ_ADMIN_PASSWORD}
volumes:
- ./rabbitmq/conf/myrabbit.conf:/etc/rabbitmq/rabbitmq.config
- ./rabbitmq/conf.d/management_agent.disable_metrics_collector.conf:/etc/rabbitmq/conf.d/management_agent.disable_metrics_collector.conf
- ./rabbitmq/logs:/var/log/rabbitmq
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:15672"]
interval: 30s
timeout: 10s
retries: 10
postgres:
build:
context: ./postgres_db
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- 5432:5432
volumes:
- ./postgres_db/data/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
- ./postgres_db/schema_backup/:/tmp/
# This needs explicit mapping due to https://github.com/docker-library/postgres/blob/4e48e3228a30763913ece952c611e5e9b95c8759/Dockerfile.template#L52
- fxa_imagesdata_postgres_dev:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
service_layer_python:
build:
context: ./service_layer_python #build from the Dockerfile in current directory.
ports:
- 5000:5000
volumes:
- ./service_layer_python/app:/app #mounts project directory to on the host to /app inside the container.
- ${PICTURES_STORAGE_DIR}:/pictures
- ${PICTURES_WORK_DIR}:/pictures_work
environment:
- ENV=development
- POSTGRES_PORT=5432
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=${POSTGRES_HOST}
depends_on:
- postgres
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 10
service_file_storage:
build:
context: ./service_file_storage #build from the Dockerfile in current directory.
ports:
- 2345:2345
- 8092:8091
volumes:
- ./service_file_storage/app/src:/app/src #mounts project directory to on the host to /app inside the container.
- ${PICTURES_STORAGE_DIR}:/pictures
- ${PICTURES_WORK_DIR}:/pictures_work
- ${PICTURES_SOURCE_DIR}:/pictures_inbox
working_dir: /app
command : npm run dev
environment:
- CHOKIDAR_USEPOLLING=1
- CHOKIDAR_INTERVAL=1
- ENV=development
- POSTGRES_PORT=5432
- NODE_ENV=development
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=${POSTGRES_HOST}
depends_on:
- postgres
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:2345/health"]
interval: 30s
timeout: 10s
retries: 10
admin_layer:
build:
context: ./admin_layer #build from the Doockerfile in current directory.
ports:
- 6000:6000
- 5678:5678
volumes:
- ./admin_layer/app:/app #mounts project directory to on the host to /app inside the container.
- ${PICTURES_SOURCE_DIR}:/pictures_inbox
- ${PICTURES_STORAGE_DIR}:/pictures
- ${PICTURES_WORK_DIR}:/pictures_work
environment:
- ENV=development
- POSTGRES_PORT=5432
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=${POSTGRES_HOST}
- RABBITMQ_SERVER=${RABBITMQ_SERVER}
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PWD=${RABBITMQ_PWD}
depends_on:
- postgres
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6000/health"]
interval: 30s
timeout: 10s
retries: 10
service_layer_node_ts:
build:
context: ./service_layer_node_ts #build from the Doockerfile in current directory.
ports:
- 2344:2344
- 8091:8091
volumes:
- ./service_layer_node_ts/app/src:/app/src #mounts project directory to on the host to /app inside the container.
- ${PICTURES_STORAGE_DIR}:/pictures
- ${PICTURES_WORK_DIR}:/pictures_work
working_dir: /app
command : npm run dev
environment:
- CHOKIDAR_USEPOLLING=1
- CHOKIDAR_INTERVAL=1
- ENV=development
- NODE_ENV=development
- POSTGRES_PORT=5432
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=${POSTGRES_HOST}
depends_on:
- postgres
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:2344/health"]
interval: 30s
timeout: 10s
retries: 10
pgadmin4:
image: dpage/pgadmin4
ports:
- 8083:80
environment:
- PGADMIN_DEFAULT_PASSWORD=pgAdminPwd
- PGADMIN_DEFAULT_EMAIL=albouy.fx@gmail.com
- PGADMIN_LISTEN_PORT=80
volumes:
- ./pgadmin/pgadmin4/servers.json:/pgadmin4/servers.json
- ./pgadmin/data:/var/lib/pgadmin4/storage
depends_on:
- postgres
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 10
angular-service: # The name of the service
build:
context: ./photosapp # Location of our Dockerfile
volumes: # Volume binding
- ./photosapp/src:/app/src
#- ./photosapp:/app
environment:
- CHOKIDAR_USEPOLLING=1
- CHOKIDAR_INTERVAL=1
ports:
- 4200:4200 # Port mapping
- 49153:49153
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4200"]
interval: 30s
timeout: 10s
retries: 10
nginx:
image: nginx:latest
volumes:
- ./docker-nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker-nginx/webcontent:/var/www
- ./docker-nginx/certificate:/etc/ssl
- ./docker-nginx/logs:/var/log/nginx
ports:
- 8088:80
- 443:443
environment:
- ENV=development
- APPLICATION_URL=https://DESKTOP-J4S3QJS
depends_on:
- service_layer_python
- angular-service
- service_layer_node_ts
- auth
- admin_layer
healthcheck:
test: ["CMD", "service", "nginx", "status"]
interval: 30s
timeout: 5s
retries: 3
analysis_face_extraction:
build:
context: ./analysis_face_extraction #build from the Dockerfile in current directory.
#restart: on-failure
ports:
- 6001:6000
volumes:
- ./analysis_face_extraction/app:/app #mounts project directory to on the host to /app inside the container.
- ${PICTURES_STORAGE_DIR}:/pictures
- ${PICTURES_WORK_DIR}:/pictures_work
environment:
- RABBITMQ_SERVER=${RABBITMQ_SERVER}
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PWD=${RABBITMQ_PWD}
depends_on:
- rabbitmq
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6000/health"]
interval: 30s
timeout: 10s
retries: 10
analysis_object_extraction:
build:
context: ./analysis_object_extraction #build from the Dockerfile in current directory.
#restart: on-failure
ports:
- 6002:6000
volumes:
- ./analysis_object_extraction/app:/app
- ${PICTURES_STORAGE_DIR}:/pictures
environment:
- RABBITMQ_SERVER=${RABBITMQ_SERVER}
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PWD=${RABBITMQ_PWD}
depends_on:
- rabbitmq
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6000/health"]
interval: 30s
timeout: 10s
retries: 10
analysis_object_extraction_yolov10:
build:
context: ./analysis_object_yolov10 #build from the Dockerfile in current directory.
#restart: on-failure
ports:
- 6005:6000
volumes:
- ./analysis_object_yolov10/app:/app
- ${PICTURES_STORAGE_DIR}:/pictures
environment:
- RABBITMQ_SERVER=${RABBITMQ_SERVER}
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PWD=${RABBITMQ_PWD}
depends_on:
- rabbitmq
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6000/health"]
interval: 30s
timeout: 10s
retries: 10
analysis_ocr:
build:
context: ./analysis_ocr #build from the Dockerfile in current directory.
#restart: on-failure
ports:
- 6003:6000
volumes:
- ./analysis_ocr/app:/app #mounts project directory to on the host to /app inside the container.
- ${PICTURES_STORAGE_DIR}:/pictures
- ${PICTURES_WORK_DIR}:/pictures_work
environment:
- RABBITMQ_SERVER=${RABBITMQ_SERVER}
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PWD=${RABBITMQ_PWD}
depends_on:
- rabbitmq
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6000/health"]
interval: 30s
timeout: 10s
retries: 10
analysis_video_speech:
build:
context: ./analysis_video_speech
ports:
- 6004:6000
volumes:
- ${PICTURES_STORAGE_DIR}:/pictures
- c:/tmp:/tmp/data
- ./analysis_video_speech/app:/app
environment:
- RABBITMQ_SERVER=${RABBITMQ_SERVER}
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PWD=${RABBITMQ_PWD}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6000/health"]
interval: 30s
timeout: 10s
retries: 10
insert_objects:
build:
context: ./insert_objects #build from the Dockerfile in current directory.
#restart: on-failure
ports:
- 6100:6000
volumes:
- ./insert_objects/app:/app
environment:
- ENV=development
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=5432
- RABBITMQ_SERVER=${RABBITMQ_SERVER}
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PWD=${RABBITMQ_PWD}
depends_on:
- rabbitmq
- postgres
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6000/health"]
interval: 30s
timeout: 10s
retries: 10
mongo:
image: mongo
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
mongo-express:
image: mongo-express
restart: unless-stopped
ports:
- 8081:8081
depends_on:
- mongo
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
ME_CONFIG_BASICAUTH: false
auth:
build:
context: ./node-token-based-authentication
ports:
- 4300:4300
- 9229:9229
working_dir: /app
command : npm run dev
volumes:
- ./node-token-based-authentication/app/src:/app/src #mounts project directory to on the host to /app inside the container
environment:
- CHOKIDAR_USEPOLLING=1
- CHOKIDAR_INTERVAL=1
- ENV=development
- NODE_ENV=development
depends_on:
- mongo
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4300"]
interval: 30s
timeout: 10s
retries: 10
sonarqube:
image: sonarqube:community
volumes:
- sonarqube_data:/opt/sonarqube/data
- sonarqube_extensions:/opt/sonarqube/extensions
- sonarqube_logs:/opt/sonarqube/logs
ports:
- "9000:9000"
volumes:
fxa_imagesdata_postgres_dev:
external: true
sonarqube_data:
sonarqube_extensions:
sonarqube_logs: