forked from Islandora-Devops/isle-dc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
424 lines (423 loc) · 13.3 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
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
networks:
default:
internal: true
gateway:
driver: bridge
internal: false
secrets:
ACTIVEMQ_PASSWORD:
file: /root/isle-dc/secrets/live/ACTIVEMQ_PASSWORD
ACTIVEMQ_WEB_ADMIN_PASSWORD:
file: /root/isle-dc/secrets/live/ACTIVEMQ_WEB_ADMIN_PASSWORD
ALPACA_ACTIVEMQ_PASSWORD:
file: /root/isle-dc/secrets/live/ALPACA_ACTIVEMQ_PASSWORD
ALPACA_KARAF_ADMIN_PASSWORD:
file: /root/isle-dc/secrets/live/ALPACA_KARAF_ADMIN_PASSWORD
DB_ROOT_PASSWORD:
file: /root/isle-dc/secrets/live/DB_ROOT_PASSWORD
DRUPAL_DEFAULT_ACCOUNT_PASSWORD:
file: /root/isle-dc/secrets/live/DRUPAL_DEFAULT_ACCOUNT_PASSWORD
DRUPAL_DEFAULT_CONFIGDIR:
file: /root/isle-dc/secrets/live/DRUPAL_DEFAULT_CONFIGDIR
DRUPAL_DEFAULT_DB_PASSWORD:
file: /root/isle-dc/secrets/live/DRUPAL_DEFAULT_DB_PASSWORD
DRUPAL_DEFAULT_SALT:
file: /root/isle-dc/secrets/live/DRUPAL_DEFAULT_SALT
FCREPO_DB_PASSWORD:
file: /root/isle-dc/secrets/live/FCREPO_DB_PASSWORD
JWT_ADMIN_TOKEN:
file: /root/isle-dc/secrets/live/JWT_ADMIN_TOKEN
JWT_PRIVATE_KEY:
file: /root/isle-dc/secrets/live/JWT_PRIVATE_KEY
JWT_PUBLIC_KEY:
file: /root/isle-dc/secrets/live/JWT_PUBLIC_KEY
TOMCAT_ADMIN_PASSWORD:
file: /root/isle-dc/secrets/live/TOMCAT_ADMIN_PASSWORD
services:
activemq:
deploy:
resources:
limits:
memory: 2G
reservations:
memory: 1G
image: islandora/activemq:3.2.10
labels:
traefik.enable: "false"
traefik.http.routers.isle-dc-activemq_http.entrypoints: activemq
traefik.http.routers.isle-dc-activemq_http.service: isle-dc-activemq
traefik.http.services.isle-dc-activemq.loadbalancer.server.port: '8161'
networks:
default: {}
restart: unless-stopped
secrets:
- source: ACTIVEMQ_PASSWORD
- source: ACTIVEMQ_WEB_ADMIN_PASSWORD
volumes:
- activemq-data:/opt/activemq/data:rw
alpaca:
deploy:
resources:
limits:
memory: 2G
reservations:
memory: 1G
environment:
ALPACA_FITS_TIMEOUT: '300000'
ALPACA_HOMARUS_TIMEOUT: '300000'
ALPACA_HOUDINI_TIMEOUT: '300000'
ALPACA_OCR_TIMEOUT: '300000'
image: islandora/alpaca:3.2.10
restart: unless-stopped
secrets:
- source: ALPACA_ACTIVEMQ_PASSWORD
- source: ALPACA_KARAF_ADMIN_PASSWORD
blazegraph:
deploy:
resources:
limits:
memory: 5G
reservations:
memory: 2G
image: islandora/blazegraph:3.2.10
labels:
traefik.enable: "false"
traefik.http.routers.isle-dc-blazegraph_http.entrypoints: blazegraph
traefik.http.routers.isle-dc-blazegraph_http.service: isle-dc-blazegraph
traefik.http.services.isle-dc-blazegraph.loadbalancer.server.port: '8080'
networks:
default: {}
restart: unless-stopped
volumes:
- blazegraph-data:/data:rw
cantaloupe:
deploy:
resources:
limits:
memory: 5G
reservations:
memory: 1G
environment:
CANTALOUPE_TEMP_PATHNAME: /data/tmp
# Bump up the max pixels here if those errors start popping up
CANTALOUPE_MAX_PIXELS: '100000000'
# -- All of this defines how Cantaloupe fetches files --
CANTALOUPE_DELEGATE_SCRIPT_ENABLED: "false"
CANTALOUPE_DELEGATE_SCRIPT_PATHNAME: /opt/tomcat/bin/delegates.rb
CANTALOUPE_SOURCE_STATIC: 'HttpSource'
#CANTALOUPE_HTTPSOURCE_LOOKUP_STRATEGY: ScriptLookupStrategy
CANTALOUPE_JAVA_OPTS: "-Djavax.net.ssl.trustStore -Dcom.sun.net.ssl.checkRevocation=false -Djdk.internal.httpclient.disableHostnameVerification=true"
image: islandora/cantaloupe:3.2.10
labels:
traefik.enable: "true"
traefik.http.middlewares.cantaloupe-custom-request-headers.headers.customrequestheaders.X-Forwarded-Path: /cantaloupe
traefik.http.middlewares.cantaloupe-redirectscheme.redirectscheme.permanent: "true"
traefik.http.middlewares.cantaloupe-redirectscheme.redirectscheme.scheme: https
traefik.http.middlewares.cantaloupe-strip-prefix.stripprefix.prefixes: /cantaloupe
traefik.http.middlewares.cantaloupe.chain.middlewares: cantaloupe-strip-prefix,cantaloupe-custom-request-headers
traefik.http.routers.isle-dc-cantaloupe_http.entrypoints: http
traefik.http.routers.isle-dc-cantaloupe_http.middlewares: cantaloupe-redirectscheme
traefik.http.routers.isle-dc-cantaloupe_http.rule: Host(`iiif.boisestate.edu`)
&& PathPrefix(`/cantaloupe`)
traefik.http.routers.isle-dc-cantaloupe_http.service: isle-dc-cantaloupe
traefik.http.routers.isle-dc-cantaloupe_https.entrypoints: https
traefik.http.routers.isle-dc-cantaloupe_https.middlewares: cantaloupe
traefik.http.routers.isle-dc-cantaloupe_https.rule: Host(`iiif.boisestate.edu`)
&& PathPrefix(`/cantaloupe`)
traefik.http.routers.isle-dc-cantaloupe_https.tls: "true"
traefik.http.services.isle-dc-cantaloupe.loadbalancer.server.port: '8182'
networks:
default: {}
restart: unless-stopped
secrets:
- source: TOMCAT_ADMIN_PASSWORD
volumes:
- cantaloupe-data:/data:rw
- ./config/cantaloupe/delegates.rb:/opt/tomcat/bin/delegates.rb
crayfits:
depends_on:
fits:
condition: service_started
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 512M
image: islandora/crayfits:3.2.10
restart: unless-stopped
drupal:
depends_on:
mariadb:
condition: service_started
traefik:
condition: service_started
deploy:
resources:
limits:
memory: 5G
reservations:
memory: 256M
environment:
DRUPAL_DEFAULT_CANTALOUPE_URL: https://iiif.boisestate.edu/cantaloupe/iiif/2
DRUPAL_DEFAULT_DB_DRIVER: mysql
DRUPAL_DEFAULT_DB_HOST: mariadb
DRUPAL_DEFAULT_DB_PORT: '3306'
DRUPAL_DEFAULT_FCREPO_HOST: iiif.boisestate.edu
DRUPAL_DEFAULT_FCREPO_PORT: 8081
DRUPAL_DEFAULT_INSTALL_EXISTING_CONFIG: "false"
DRUPAL_DEFAULT_PROFILE: standard
DRUPAL_DEFAULT_SITE_URL: http://iiif.boisestate.edu
NGINX_FASTCGI_CONNECT_TIMEOUT: 300s
NGINX_FASTCGI_READ_TIMEOUT: 300s
NGINX_FASTCGI_SEND_TIMEOUT: 300s
NGINX_KEEPALIVE_TIMEOUT: 300s
NGINX_PROXY_CONNECT_TIMEOUT: 300s
NGINX_PROXY_READ_TIMEOUT: 300s
NGINX_PROXY_SEND_TIMEOUT: 300s
NGINX_SEND_TIMEOUT: 300s
PHP_DEFAULT_SOCKET_TIMEOUT: '300'
PHP_MAX_EXECUTION_TIME: '300'
PHP_MAX_INPUT_TIME: '300'
PHP_MEMORY_LIMIT: 256M
PHP_POST_MAX_SIZE: 256M
PHP_PROCESS_CONTROL_TIMEOUT: '300'
PHP_REQUEST_TERMINATE_TIMEOUT: '300'
PHP_UPLOAD_MAX_FILESIZE: 256M
image: islandora/drupal:3.2.10
labels:
traefik.enable: "true"
traefik.http.middlewares.drupal-redirectscheme.redirectscheme.permanent: "true"
traefik.http.middlewares.drupal-redirectscheme.redirectscheme.scheme: https
traefik.http.routers.isle-dc-drupal_http.entrypoints: http
traefik.http.routers.isle-dc-drupal_http.middlewares: drupal-redirectscheme
traefik.http.routers.isle-dc-drupal_http.rule: Host(`iiif.boisestate.edu`)
traefik.http.routers.isle-dc-drupal_http.service: isle-dc-drupal
traefik.http.routers.isle-dc-drupal_https.entrypoints: https
traefik.http.routers.isle-dc-drupal_https.rule: Host(`iiif.boisestate.edu`)
traefik.http.routers.isle-dc-drupal_https.tls: "true"
traefik.http.services.isle-dc-drupal.loadbalancer.server.port: '80'
networks:
default: {}
gateway: {}
restart: unless-stopped
secrets:
- source: DB_ROOT_PASSWORD
- source: DRUPAL_DEFAULT_ACCOUNT_PASSWORD
- source: DRUPAL_DEFAULT_CONFIGDIR
- source: DRUPAL_DEFAULT_DB_PASSWORD
- source: DRUPAL_DEFAULT_SALT
- source: JWT_PRIVATE_KEY
- source: JWT_PUBLIC_KEY
volumes:
- solr-data:/opt/solr/server/solr:rw
- /root/isle-dc/codebase:/var/www/drupal:delegated
- drupal-sites-data:/var/www/drupal/web/sites/default/files:rw
- ./data/private_files:/var/www/data/private_files:rw
- ./codebase/assets/settingsfiles/default.settings.php:/var/www/drupal/web/sites/default/default.settings.php
fcrepo:
depends_on:
activemq:
condition: service_started
deploy:
resources:
limits:
memory: 5G
reservations:
memory: 1G
environment:
FCREPO_ALLOW_EXTERNAL_DRUPALHTTP: http://iiif.boisestate.edu/
FCREPO_ALLOW_EXTERNAL_DRUPALHTTPS: https://iiif.boisestate.edu/
FCREPO_DISABLE_SYN: "false"
FCREPO_PERSISTENCE_TYPE: mysql
FCREPO_TOMCAT_ADMIN_ROLES: manager-gui,fedoraAdmin
FCREPO_TOMCAT_ADMIN_USER: admin
image: islandora/fcrepo6:3.2.10
labels:
traefik.enable: "true"
traefik.http.routers.isle-dc-fcrepo_http.entrypoints: fcrepo
traefik.http.routers.isle-dc-fcrepo_http.service: isle-dc-fcrepo
traefik.http.services.isle-dc-fcrepo.loadbalancer.server.port: '8080'
networks:
default: {}
restart: unless-stopped
secrets:
- source: DB_ROOT_PASSWORD
- source: FCREPO_DB_PASSWORD
- source: JWT_ADMIN_TOKEN
- source: JWT_PUBLIC_KEY
volumes:
- fcrepo-data:/data:rw
fits:
deploy:
resources:
limits:
memory: 5G
reservations:
memory: 1000M
image: islandora/fits:3.2.10
restart: unless-stopped
homarus:
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 512M
image: islandora/homarus:3.2.10
restart: unless-stopped
secrets:
- source: JWT_ADMIN_TOKEN
- source: JWT_PUBLIC_KEY
houdini:
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 512M
image: islandora/houdini:3.2.10
restart: unless-stopped
secrets:
- source: JWT_ADMIN_TOKEN
- source: JWT_PUBLIC_KEY
hypercube:
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 256M
image: islandora/hypercube:3.2.10
restart: unless-stopped
secrets:
- source: JWT_ADMIN_TOKEN
- source: JWT_PUBLIC_KEY
mariadb:
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 512M
image: islandora/mariadb:3.2.10
labels:
traefik.enable: "false"
traefik.tcp.routers.isle-dc-mysql_tcp.entrypoints: mysql
traefik.tcp.routers.isle-dc-mysql_tcp.rule: HostSNI(`*`)
traefik.tcp.routers.isle-dc-mysql_tcp.service: isle-dc-mysql
traefik.tcp.services.isle-dc-mysql.loadbalancer.server.port: '3306'
networks:
default: {}
restart: unless-stopped
secrets:
- source: DB_ROOT_PASSWORD
volumes:
- mariadb-data:/var/lib/mysql:rw
- mariadb-files:/var/lib/mysql-files:rw
milliner:
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 512M
environment:
MILLINER_FEDORA6: "true"
image: islandora/milliner:3.2.10
networks:
default: {}
gateway: {}
restart: unless-stopped
secrets:
- source: JWT_ADMIN_TOKEN
- source: JWT_PUBLIC_KEY
solr:
deploy:
resources:
limits:
memory: 8G
reservations:
memory: 6G
image: islandora/solr:3.2.10
labels:
traefik.enable: "false"
traefik.http.routers.isle-dc-solr_http.entrypoints: solr
traefik.http.routers.isle-dc-solr_http.service: isle-dc-solr
traefik.http.services.isle-dc-solr.loadbalancer.server.port: '8983'
networks:
default: {}
restart: unless-stopped
volumes:
- solr-data:/opt/solr/server/solr:rw
traefik:
command:
- --api.insecure=false
- --api.dashboard=false
- --api.debug=false
- --entryPoints.http.address=:80
- --entryPoints.https.address=:443
- --entryPoints.mysql.address=:3306
- --entryPoints.postgresql.address=:5432
- --entryPoints.fcrepo.address=:8081
- --entryPoints.blazegraph.address=:8082
- --entryPoints.activemq.address=:8161
- --entryPoints.solr.address=:8983
- --entryPoints.code-server.address=:8443
- --log.level=ERROR
- --providers.docker
- --providers.docker.network=gateway
- --providers.docker.exposedByDefault=false
- --providers.file.filename=/etc/traefik/tls.yml
- --providers.docker.defaultRule=Host(`iiif.boisestate.edu`)
container_name: traefik
deploy:
resources:
limits:
memory: 8G
reservations:
memory: 4G
image: traefik:2.10.5
labels:
traefik.http.routers.api.service: api@internal
networks:
default:
aliases:
- iiif.boisestate.edu
gateway: {}
ports:
- published: 80
target: 80
- published: 443
target: 443
- published: 3306
target: 3306
- published: 5432
target: 5432
- published: 8080
target: 8080
- published: 8081
target: 8081
- published: 8082
target: 8082
- published: 8161
target: 8161
- published: 8443
target: 8443
- published: 8983
target: 8983
restart: unless-stopped
volumes:
- /root/isle-dc/certs:/etc/ssl/traefik:rw
- /root/isle-dc/build/traefik-tls.yml:/etc/traefik/tls.yml:rw
- /var/run/docker.sock:/var/run/docker.sock:rw
version: '3.7'
volumes:
activemq-data: {}
blazegraph-data: {}
cantaloupe-data: {}
drupal-sites-data: {}
fcrepo-data: {}
mariadb-data: {}
mariadb-files: {}
solr-data: {}