-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose-dev.yml
396 lines (391 loc) · 9.64 KB
/
docker-compose-dev.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
390
391
392
393
394
395
396
# Shanoir NG - Import, manage and share neuroimaging data
# Copyright (C) 2009-2019 Inria - https://www.inria.fr/
# Contact us on https://project.inria.fr/shanoir/
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see https://www.gnu.org/licenses/gpl-3.0.html
version: '3'
services:
#
# Keycloak: database and service
#
keycloak-database:
container_name: "${SHANOIR_PREFIX}keycloak-database"
build:
context: docker-compose
target: keycloak-database
environment:
- MYSQL_DATABASE=keycloak
ulimits:
nofile:
soft: 262144
hard: 262144
volumes:
- "keycloak-database-data:/var/lib/mysql"
networks:
- shanoir_ng_network
keycloak:
container_name: "${SHANOIR_PREFIX}keycloak"
#command: ["start-dev"] # default is "start" to run in production mode
environment:
- SHANOIR_ADMIN_EMAIL
- SHANOIR_ADMIN_NAME
- SHANOIR_URL_SCHEME
- SHANOIR_URL_HOST
- SHANOIR_VIEWER_OHIF_URL_SCHEME
- SHANOIR_VIEWER_OHIF_URL_HOST
- SHANOIR_SMTP_HOST
- SHANOIR_MIGRATION
- SHANOIR_KEYCLOAK_USER
- SHANOIR_KEYCLOAK_PASSWORD
- SHANOIR_ALLOWED_ADMIN_IPS
build:
context: docker-compose
target: keycloak
volumes:
- "keycloak-logs:/opt/keycloak/data/log"
networks:
- shanoir_ng_network
ports:
- "8080:8080"
depends_on:
- "keycloak-database"
#
# RabbitMQ: inter-microservices communication
#
rabbitmq:
container_name: "${SHANOIR_PREFIX}rabbitmq"
image: rabbitmq:3.10.7
volumes:
- "rabbitmq-data:/var/lib/rabbitmq/mnesia/rabbitmq"
ports:
- "5672:5672"
- "15672:15672"
networks:
- shanoir_ng_network
#
# Database for all other microservices
#
database:
container_name: "${SHANOIR_PREFIX}database"
build:
context: docker-compose
target: database
command: --max_allowed_packet 20000000
env_file:
- ./docker-compose/database/variables.env
environment:
- SHANOIR_MIGRATION
ulimits:
nofile:
soft: 262144
hard: 262144
volumes:
- "database-data:/var/lib/mysql"
ports:
- "3307:3306"
networks:
- shanoir_ng_network
#
# Users microservice
#
users:
container_name: "${SHANOIR_PREFIX}users"
build:
context: docker-compose
target: users
environment:
- SHANOIR_PREFIX
- SHANOIR_URL_SCHEME
- SHANOIR_URL_HOST
- SHANOIR_KEYCLOAK_USER
- SHANOIR_KEYCLOAK_PASSWORD
- SHANOIR_SMTP_HOST
- SHANOIR_ADMIN_EMAIL
- SHANOIR_CERTIFICATE
- SHANOIR_CERTIFICATE_PEM_CRT
- SHANOIR_CERTIFICATE_PEM_KEY
- SHANOIR_MIGRATION
- VIP_SERVICE_EMAIL
volumes:
- "logs:/var/log/shanoir-ng-logs"
- certificate-share-data:/etc/ssl/certs/java
networks:
- shanoir_ng_network
ports:
- "9901:9901"
- "9911:9911"
depends_on:
- "database"
- "rabbitmq"
#
# Studies microservice
#
studies:
container_name: "${SHANOIR_PREFIX}studies"
build:
context: docker-compose
target: studies
environment:
- SHANOIR_PREFIX
- SHANOIR_URL_SCHEME
- SHANOIR_URL_HOST
- SHANOIR_MIGRATION
volumes:
- "logs:/var/log/shanoir-ng-logs"
- certificate-share-data:/etc/ssl/certs/java:ro
- "studies-data:/var/studies-data"
- "tmp:/tmp"
networks:
- shanoir_ng_network
ports:
- "9902:9902"
- "9912:9912"
depends_on:
- "database"
- "rabbitmq"
- "users"
#
# Import microservice
#
import:
container_name: "${SHANOIR_PREFIX}import"
build:
context: docker-compose
target: import
environment:
- SHANOIR_PREFIX
- SHANOIR_URL_SCHEME
- SHANOIR_URL_HOST
- SHANOIR_MIGRATION
volumes:
- "logs:/var/log/shanoir-ng-logs"
- certificate-share-data:/etc/ssl/certs/java:ro
- "tmp:/tmp"
networks:
- shanoir_ng_network
ports:
- "9903:9903"
- "9913:9913"
# uncomment below for local testing of import-from-pacs, enable:
# pacs-to-ms-import: c-move from dcm4chee arc light to ms import
# do not add by default, as it blocks local ShUp from using 44105
# - "44105:44105"
depends_on:
- "database"
- "rabbitmq"
- "users"
#
# Datasets microservice
#
datasets:
container_name: "${SHANOIR_PREFIX}datasets"
build:
context: docker-compose
target: datasets
environment:
- SHANOIR_PREFIX
- SHANOIR_URL_SCHEME
- SHANOIR_URL_HOST
- SHANOIR_VIEWER_OHIF_URL_SCHEME
- SHANOIR_VIEWER_OHIF_URL_HOST
- SHANOIR_MIGRATION
- VIP_URL_SCHEME
- VIP_URL_HOST
- VIP_CLIENT_SECRET
volumes:
- "logs:/var/log/shanoir-ng-logs"
- certificate-share-data:/etc/ssl/certs/java:ro
- "tmp:/tmp"
- "datasets-data:/var/datasets-data"
networks:
- shanoir_ng_network
ports:
- "9904:9904"
- "9914:9914"
depends_on:
- "database"
- "rabbitmq"
- "users"
preclinical:
container_name: "${SHANOIR_PREFIX}preclinical"
build:
context: docker-compose
target: preclinical
environment:
- SHANOIR_PREFIX
- SHANOIR_URL_SCHEME
- SHANOIR_URL_HOST
- SHANOIR_MIGRATION
volumes:
- "logs:/var/log/shanoir-ng-logs"
- certificate-share-data:/etc/ssl/certs/java:ro
- "tmp:/tmp"
- "extra-data:/var/extra-data"
networks:
- shanoir_ng_network
ports:
- "9905:9905"
- "9915:9915"
depends_on:
- "database"
- "rabbitmq"
- "users"
#
# Nifti conversion microservice
#
nifti-conversion:
container_name: "${SHANOIR_PREFIX}nifti-conversion"
build:
context: docker-compose
target: nifti-conversion
environment:
- SHANOIR_PREFIX
- SHANOIR_URL_SCHEME
- SHANOIR_URL_HOST
- SHANOIR_MIGRATION
volumes:
- "logs:/var/log/shanoir-ng-logs"
- "datasets-data:/var/datasets-data"
- "tmp:/tmp"
networks:
- shanoir_ng_network
depends_on:
- "import"
- "datasets"
#
# Solr microservice for Shanoir-NG search
#
solr:
container_name: "${SHANOIR_PREFIX}solr"
build:
context: docker-compose
target: solr
environment:
- SOLR_LOG_LEVEL=SEVERE
volumes:
- "solr-data:/var/solr"
networks:
- shanoir_ng_network
ports:
- "8983:8983"
# Backup PACS microservice: dcm4chee 5 arc-light
#
# The config for the dcm4chee containers is derived from this template:
# https://github.com/dcm4che-dockerfiles/dcm4chee-arc-psql/blob/master/docker-compose.yml
ldap:
container_name: "${SHANOIR_PREFIX}ldap"
image: dcm4che/slapd-dcm4chee:2.6.2-27.0
logging:
driver: json-file
options:
max-size: "10m"
networks:
- shanoir_ng_network
ports:
- "389:389"
env_file: ./docker-compose/dcm4chee/variables.env
volumes:
- "dcm4chee-ldap-data:/var/lib/openldap/openldap-data"
- "dcm4chee-sldap-data:/etc/openldap/slapd.d"
dcm4chee-database:
container_name: "${SHANOIR_PREFIX}dcm4chee-database"
image: dcm4che/postgres-dcm4chee:14.4-27
logging:
driver: json-file
options:
max-size: "10m"
networks:
- shanoir_ng_network
ports:
- "5432:5432"
env_file: ./docker-compose/dcm4chee/variables.env
volumes:
- "dcm4chee-database-data:/var/lib/postgresql/data"
dcm4chee-arc:
container_name: "${SHANOIR_PREFIX}dcm4chee-arc"
image: dcm4che/dcm4chee-arc-psql:5.27.0
logging:
driver: json-file
options:
max-size: "10m"
networks:
- shanoir_ng_network
ports:
- "8081:8081"
- "8443:8443"
- "9990:9990"
- "11112:11112"
- "2575:2575"
env_file: ./docker-compose/dcm4chee/variables.env
environment:
POSTGRES_HOST: "${SHANOIR_PREFIX}dcm4chee-database"
WILDFLY_CHOWN: /storage
WILDFLY_WAIT_FOR: "${SHANOIR_PREFIX}ldap:389 ${SHANOIR_PREFIX}dcm4chee-database:5432"
depends_on:
- "ldap"
- "dcm4chee-database"
volumes:
- "dcm4chee-arc-wildfly-data:/opt/wildfly/standalone"
- "dcm4chee-arc-storage-data:/storage"
#
# Nginx
#
nginx:
container_name: shanoir-ng-nginx
build:
context: docker-compose
target: nginx
environment:
- SHANOIR_PREFIX
- SHANOIR_URL_SCHEME
- SHANOIR_URL_HOST
- SHANOIR_VIEWER_OHIF_URL_SCHEME
- SHANOIR_VIEWER_OHIF_URL_HOST
- SHANOIR_X_FORWARDED
- SHANOIR_INSTANCE_NAME
- SHANOIR_INSTANCE_COLOR
- SHANOIR_CERTIFICATE_PEM_CRT
- SHANOIR_CERTIFICATE_PEM_KEY
- SHANOIR_KEYCLOAK_ADAPTER_MODE
- VIP_URL_SCHEME
- VIP_URL_HOST
volumes:
- "logs:/var/log/nginx"
- certificate-share-data:/opt/ssl:ro
networks:
- shanoir_ng_network
ports:
- "443:443"
depends_on:
- "users"
- "studies"
- "import"
- "datasets"
- "preclinical"
- "rabbitmq"
- "nifti-conversion"
volumes:
keycloak-database-data:
rabbitmq-data:
database-data:
datasets-data:
extra-data:
studies-data:
dcm4chee-ldap-data:
dcm4chee-sldap-data:
dcm4chee-database-data:
dcm4chee-arc-wildfly-data:
dcm4chee-arc-storage-data:
solr-data:
certificate-share-data:
tmp:
logs:
keycloak-logs:
networks:
shanoir_ng_network: