This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
493 lines (447 loc) · 16.1 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
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
version: '3.7'
services:
dnsmasq:
image: andyshinn/dnsmasq:2.78
container_name: dnsmasq
command: --log-facility=- --server=127.0.0.11 --neg-ttl=3600 --cache-size=1000 --max-cache-ttl=3600 --min-cache-ttl=3600
cap_add:
- NET_ADMIN
ports:
- 172.17.0.1:53:53/tcp
- 172.17.0.1:53:53/udp
depends_on:
- proxy
external_links:
- proxy:beta.bioatlas.se
- proxy:auth.bioatlas.se
proxy:
image: jwilder/nginx-proxy
container_name: proxy
init: true
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/tmp/docker.sock
- ./nginx-proxy-certs:/etc/nginx/certs:ro
- ./nginx-proxy/nginx-proxy.conf:/etc/nginx/conf.d/nginx-proxy.conf
webserver:
image: nginx:alpine
container_name: webserver
environment:
- VIRTUAL_HOST=beta.bioatlas.se,auth.bioatlas.se
volumes:
- ./env/.htpasswd:/etc/nginx/htpasswd
- ./webserver/app.conf:/etc/nginx/conf.d/app.conf:ro
mysqldb:
image: mysql:5.7
env_file: ./env/.envcollectory
container_name: mysqldb
volumes:
- db_data_collectory:/var/lib/mysql
cassandradb:
image: bioatlas/ala-cassandra:v0.4
container_name: cassandradb
volumes:
- db_data_cassandra:/var/lib/cassandra
entrypoint: /bin/bash -c "cp /tmp/cassandra.yaml /etc/cassandra/cassandra.yaml && cp /tmp/cassandra-env.sh /etc/cassandra/cassandra-env.sh && /entrypoint-wrap.sh"
biocacheservice:
image: bioatlas/ala-biocacheservice:v0.5
container_name: biocacheservice
depends_on:
- cassandradb
- solr
links:
- cassandradb
- solr
environment:
JAVA_OPTS: -Xmx2g -Xms128m -Xss256k -Djava.awt.headless=true
volumes:
- data_nameindex:/data/lucene/namematching
- ./config/biocache-config.properties:/data/biocache/config/biocache-config.properties:ro
- ./config/logger-client.properties:/data/logger-client/config/logger-client.properties:ro
biocachehub:
image: bioatlas/ala-biocachehub:v0.6
container_name: biocachehub
depends_on:
- biocacheservice
environment:
JAVA_OPTS: -Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
volumes:
- ./config/ala-hub-config.properties:/data/ala-hub/config/ala-hub-config.properties:ro
collectory:
image: bioatlas/ala-collectory:v0.5
container_name: collectory
depends_on:
- mysqldb
links:
- mysqldb
environment:
JAVA_OPTS: -Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
env_file: ./env/.envcollectory
volumes:
- data_collectory:/data/ala-collectory
- ./config/ala-collectory-config.properties:/tmp/ala-collectory-config.properties:ro
command: /bin/ash -c "envsubst < /tmp/ala-collectory-config.properties > /data/ala-collectory/config/ala-collectory-config.properties && catalina.sh run"
nameindex:
#image: bioatlas/ala-nameindex:v0.5
image: bioatlas/ala-dyntaxaindex:v0.4
command: /bin/ash
container_name: nameindex
volumes:
- data_nameindex:/data/lucene/namematching
biocachebackend:
image: bioatlas/ala-biocachebackend:v0.7
container_name: biocachebackend
links:
- biocachehub
- biocacheservice
- collectory
- cassandradb
- solr
command: /bin/ash
environment:
- BIOCACHE_MEMORY_OPTS=-Xmx1g -Xms1g
volumes:
- data_nameindex:/data/lucene/namematching
- data_biocachebackend:/data
- ./config/blacklistMediaUrls.txt:/data/biocache/config/blacklistMediaUrls.txt
- ./config/biocache-config.properties:/data/biocache/config/biocache-config.properties:ro
solr:
image: bioatlas/ala-solr:v0.5
container_name: solr
environment:
SOLR_HEAP: 4g
volumes:
- data_solr:/opt/solr
ports:
- 8983:8983
loggerservice:
image: bioatlas/ala-loggerservice:v0.3
container_name: loggerservice
depends_on:
- mysqldblogger
links:
- mysqldblogger
environment:
JAVA_OPTS: -Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
env_file: ./env/.envlogger
volumes:
- ./config/logger-config.properties:/tmp/logger-config.properties:ro
command: /bin/ash -c "envsubst < /tmp/logger-config.properties > /data/logger/config/logger-config.properties && catalina.sh run"
mysqldblogger:
image: mysql:5.7
env_file: ./env/.envlogger
container_name: mysqldblogger
volumes:
- ./loggerservice/db:/docker-entrypoint-initdb.d
- db_data_loggerservice:/var/lib/mysql
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:7.0.0"
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- discovery.type=single-node
- node.name=elasticsearch
volumes:
- data_images_elasticsearch:/usr/share/elasticsearch/data
imageservice:
image: bioatlas/ala-imageservice:v0.5
container_name: imageservice
depends_on:
- psqldbimage
links:
- psqldbimage
environment:
JAVA_OPTS: -Xmx2g -Xms128m -Xss256k -Djava.awt.headless=true
env_file: ./env/.envimage
volumes:
- ./config/image-service-config.yml:/tmp/image-service-config.yml
- data_images:/data/image-service/store
command: /bin/ash -c "envsubst < /tmp/image-service-config.yml > /data/image-service/config/image-service-config.yml && catalina.sh run"
static:
image: nginx:alpine
volumes:
- ./static:/usr/share/nginx/html
container_name: static
imagestore:
image: bioatlas/ala-imagestore:v0.4
volumes:
- data_images:/data/image-service/store
container_name: imagestore
psqldbimage:
image: postgres:9.6.8-alpine
env_file: ./env/.envimage
container_name: psqldbimage
volumes:
- db_data_imageservice:/var/lib/postgresql/data
apiservice:
image: bioatlas/ala-api:v0.3
container_name: apiservice
depends_on:
- mysqldbapi
links:
- mysqldbapi
environment:
JAVA_OPTS: -Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
env_file: ./env/.envapi
volumes:
- ./config/webapi-config.properties:/tmp/webapi-config.properties:ro
command: /bin/ash -c "envsubst < /tmp/webapi-config.properties > /data/webapi/config/webapi-config.properties && catalina.sh run"
mysqldbapi:
image: mysql:5.7
env_file: ./env/.envapi
container_name: mysqldbapi
volumes:
- db_data_apiservice:/var/lib/mysql
mysqldbwordpress:
image: mysql:5.7
container_name: mysqldbwordpress
env_file: ./env/.envwordpress
volumes:
- db_data_wordpress:/var/lib/mysql
wordpress:
image: wordpress:4.9.5-apache
container_name: wordpress
ports:
- 8080:80
env_file: ./env/.envwordpress
volumes:
- ./wordpress/themes/atlas/bioatlas-wordpress-theme-master:/var/www/html/wp-content/themes/atlas
- ./wordpress/wp-config-sample.php:/usr/src/wordpress/wp-config-sample.php:ro
- data_wordpress:/var/www/html
specieslists:
image: bioatlas/ala-specieslists:v0.6
container_name: specieslists
links:
- mysqldbspecieslist
environment:
JAVA_OPTS: -Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
env_file: ./env/.envspecieslists
volumes:
- ./config/specieslist-webapp-config.properties:/tmp/specieslist-webapp-config.properties:ro
- data_nameindex:/data/lucene/namematching
command: /bin/ash -c "envsubst < /tmp/specieslist-webapp-config.properties > /data/specieslist-webapp/config/specieslist-webapp-config.properties && catalina.sh run"
mysqldbspecieslist:
image: mysql:5.7
env_file: ./env/.envspecieslists
container_name: mysqldbspecieslist
command: --sql_mode=""
volumes:
- ./specieslists/db:/docker-entrypoint-initdb.d
- db_data_specieslists:/var/lib/mysql
bieindex:
image: bioatlas/ala-bieindex:v0.7
container_name: bieindex
environment:
- JAVA_OPTS=-Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
volumes:
- ./config/bie-index-config.properties:/data/bie-index/config/bie-index-config.properties
- data_bieindex:/data
links:
- solr
biehub:
image: bioatlas/ala-biehub:v0.6
container_name: biehub
environment:
- JAVA_OPTS=-Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
volumes:
- ./config/ala-bie-config.properties:/data/ala-bie/config/ala-bie-config.properties:ro
postgis:
image: mdillon/postgis:9.6-alpine
#image: kartoza/postgis:9.6-2.4
container_name: postgis
env_file: ./env/.envpostgis
volumes:
- db_data_postgis:/var/lib/postgresql/data
- ./postgis/pg_hba.conf:/etc/postgresql/9.6/main/pg_hba.conf
- ./postgis/layersdb.sql:/docker-entrypoint-initdb.d/layersdb.sql
geoserver:
#image: kartoza/geoserver:2.13.0
image: bioatlas/ala-geoserver:v0.4
container_name: geoserver
environment:
- JAVA_OPTS=-Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
env_file: ./env/.envgeoserver
volumes:
- data_geoserver:/data/geoserver_data_dir
- data_spatialservice:/data/spatial-data
#command: /bin/bash -c "catalina.sh run & (while ! echo exit | nc localhost 8080; do sleep 100; done) && /data/geoserver-files/geoserver.sh"
# layersservice:
# image: bioatlas/ala-layersservice:v0.4
# container_name: layersservice
# environment:
# - JAVA_OPTS=-Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
# env_file: env/.envlayersservice
# volumes:
# - ./config/layers-service-config.properties:/data/layers-service/config/layers-service-config.properties:ro
# - ./config/layers-store-config.properties:/tmp/layers-store-config.properties
# - ./config/layers-data.xml:/tmp/layers-service-data-config.xml
# - ./config/layers-data.xml:/tmp/layers-store-data-config.xml
# - data_layersservice:/data
## - data_spatialservice:/data/spatial-data
# command: /bin/bash -c "envsubst < /tmp/layers-store-config.properties > /data/layers-store/config/layers-store-config.properties && envsubst < /tmp/layers-service-data-config.xml > /data/layers-service/config/layers-service-data-config.xml && envsubst < /tmp/layers-store-data-config.xml > /data/layers-store/config/layers-store-data-config.xml && catalina.sh run"
#
# layeringestion:
# image: bioatlas/ala-layeringestion:v0.3
# container_name: layeringestion
# volumes:
# - data_layersservice:/data
# links:
# - layersservice
# - postgis
# - geoserver
regions:
image: bioatlas/ala-regions:v0.6
container_name: regions
environment:
- JAVA_OPTS=-Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
volumes:
- ./config/regions-config.properties:/data/regions/config/regions-config.properties:ro
- ./regions/regions-files/menu-config.json:/data/regions/config/menu-config.json:ro
- ./regions/regions-files/state-emblems.json:/data/regions/config/state-emblems.json:ro
geonetwork:
image: geonetwork:3.4.1
container_name: geonetwork
env_file: ./env/.envgeonetwork
volumes:
- data_geonetwork:/data/ala/data/geonetwork/
# - ./geonetwork/geonetwork-files/postgres-postgis.xml:/usr/local/tomcat/webapps/geonetwork/WEB-INF/config-db/postgres-postgis.xml
# - ./geonetwork/geonetwork-files/postgis-alternate-datasource.xml:/usr/local/tomcat/webapps/geonetwork/WEB-INF/config-db/postgis-alternate-datasource.xml
# - ./geonetwork/geonetwork-files/jdbc.properties:/usr/local/tomcat/webapps/geonetwork/WEB-INF/config-db/jdbc.properties
environment:
- JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true -server -Xms512m -Xmx2024m -XX:NewSize=512m -XX:MaxNewSize=1024m -XX:+UseConcMarkSweepGC"
depends_on:
- geonetworkdb
geonetworkdb:
image: mdillon/postgis:9.6-alpine
container_name: geonetworkdb
env_file: ./env/.envgeonetworkdb
volumes:
- db_data_geonetworkdb:/var/lib/postgresql/data
- ./geonetwork/pg_hba.conf:/etc/pg_hba.conf:ro
spatialhub:
image: bioatlas/ala-spatialhub:v0.7
container_name: spatialhub
environment:
- JAVA_OPTS=-Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
volumes:
- data_spatialhub:/data/ala/runtime/files
- ./config/spatial-hub-config.yml:/data/spatial-hub/config/spatial-hub-config.yml
- ./spatialhub/menu-config.json:/data/spatial-hub/config/menu-config.json
- ./spatialhub/view-config.json:/data/spatial-hub/config/view-config.json
spatialservice:
image: bioatlas/ala-spatialservice:v0.6
container_name: spatialservice
environment:
- JAVA_OPTS=-Xmx4g -Xms128m -Xss256k -Djava.awt.headless=true
env_file:
- ./env/.envspatial
volumes:
- data_spatialservice:/data/spatial-data
- ./config/spatial-service-config.yml:/tmp/spatial-service-config.yml
command: /bin/bash -c "envsubst < /tmp/spatial-service-config.yml > /data/spatial-service/config/spatial-service-config.yml && catalina.sh run"
mysqldbcas:
image: mysql:5.7
env_file: ./env/.envcas
container_name: mysqldbcas
volumes:
- ./cas2/db:/docker-entrypoint-initdb.d
- db_data_mysqldbcas:/var/lib/mysql
casserver:
image: bioatlas/ala-cas:v0.3
container_name: casserver
environment:
- JAVA_OPTS=-Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
env_file: ./env/.envcas
volumes:
- ./config/cas.properties:/tmp/cas.properties
command: /bin/ash -c "envsubst < /tmp/cas.properties > /data/cas/config/cas.properties && catalina.sh run"
userdetails:
image: bioatlas/ala-userdetails:v0.3
container_name: userdetails
domainname: auth.bioatlas.se
environment:
- JAVA_OPTS=-Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
env_file: ./env/.envcas
volumes:
- ./config/userdetails-config.properties:/tmp/userdetails-config.properties
command: /bin/ash -c "envsubst < /tmp/userdetails-config.properties > /data/userdetails/config/userdetails-config.properties && catalina.sh run"
mysqldbapikey:
image: mysql:5.7
container_name: mysqldbapikey
env_file: ./env/.envapikey
volumes:
- ./apikey/db:/docker-entrypoint-initdb.d
- db_data_mysqldbapikey:/var/lib/mysql
apikey:
image: bioatlas/ala-apikey:v0.3
container_name: apikey
environment:
- JAVA_OPTS=-Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
env_file: ./env/.envapikey
volumes:
- ./config/apikey-config.properties:/tmp/apikey-config.properties
command: /bin/ash -c "envsubst < /tmp/apikey-config.properties > /data/apikey/config/apikey-config.properties && catalina.sh run"
mailhog:
image: mailhog/mailhog:v1.0.0
container_name: mailhog
ports:
- 1025:1025
- 8025:8025
# dashboard:
# image: bioatlas/ala-dashboard:v0.3
# container_name: dashboard
# environment:
# JAVA_OPTS: -Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
# volumes:
# - ./config/dashboard-config.properties:/data/dashboard/config/dashboard-config.properties
# - ./dashboard/data.json:/data/dashboard/data.json:rw
sds:
image: bioatlas/ala-sds:v0.1
container_name: sds
environment:
- JAVA_OPTS=-Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
volumes:
- data_nameindex:/data/lucene/namematching
- ./config/sds-config.properties:/data/sds/config/sds-config.properties
mysqldbwordpress:
image: mysql:5.7
container_name: mysqldbwordpress
env_file: ./env/.envwordpress
volumes:
- db_data_wordpress:/var/lib/mysql
wordpress:
image: wordpress:4.9.5-apache
container_name: wordpress
ports:
- 8080:80
env_file: ./env/.envwordpress
volumes:
- ./wordpress/themes/atlas/bioatlas-wordpress-theme-master:/var/www/html/wp-content/themes/atlas
- ./wordpress/wp-config-sample.php:/usr/src/wordpress/wp-config-sample.php:ro
volumes:
db_data_collectory:
data_collectory:
db_data_cassandra:
db_data_loggerservice:
db_data_imageservice:
db_data_apiservice:
data_nameindex:
data_images:
data_biocachebackend:
data_solr:
data_images_elasticsearch:
db_data_wordpress:
data_wordpress:
db_data_specieslists:
db_data_postgis:
data_geoserver:
data_layersservice:
data_geonetwork:
db_data_geonetworkdb:
data_spatialhub:
data_spatialservice:
db_data_mysqldbcas:
db_data_mysqldbapikey:
data_bieindex: