forked from bioatlas/ala-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswarm-docker-compose.yml
More file actions
149 lines (138 loc) · 4.03 KB
/
Copy pathswarm-docker-compose.yml
File metadata and controls
149 lines (138 loc) · 4.03 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
version: '3.7'
networks:
basnet:
external: true
secrets:
biodiversitydata.se.crt:
file: ./nginx-proxy-certs/biodiversitydata.se.crt
biodiversitydata.se.key:
file: ./nginx-proxy-certs/biodiversitydata.se.key
htpasswd:
file: ./env/.htpasswd
configs:
config_nginx-proxy:
file: ./webserver/nginx-proxy.conf
config_ala-cors:
file: ./webserver/ala-cors.conf
config_biocache:
file: ./config/biocache-config.properties
config_logger-client:
file: ./config/logger-client.properties
config_ala_hub:
file: ./config/ala-hub-config.properties
config_blacklist:
file: ./config/blacklistMediaUrls.txt
services:
proxy:
image: jwilder/nginx-proxy:1.3.0
init: true
ports:
- target: 80
published: 80
mode: host
- target: 443
published: 443
mode: host
volumes:
- /var/run/docker.sock:/tmp/docker.sock
- ./webserver/conf.d:/etc/nginx/conf.d
secrets:
- source: biodiversitydata.se.crt
target: /etc/nginx/certs/biodiversitydata.se.crt
- source: biodiversitydata.se.key
target: /etc/nginx/certs/biodiversitydata.se.key
configs:
- source: config_nginx-proxy
target: /etc/nginx/proxy.conf
- source: config_ala-cors
target: /etc/nginx/ala-cors.conf
logging:
driver: local
options:
max-size: 100m
max-file: 5
deploy:
placement:
constraints:
- node.role == manager
networks:
- basnet
biocacheservice:
image: bioatlas/ala-biocacheservice:v2.5.1
depends_on:
- cassandradb
- solr
environment:
JAVA_OPTS: -Xmx8g -Xms128m -Xss256k -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom -Dlog4j2.formatMsgNoLookups=true
volumes:
- data_nameindex_old:/data/lucene/namematching
env_file: ./env/.envbiocacheservice
configs:
- source: config_biocache
target: /data/biocache/config/biocache-config.properties
- source: config_logger-client
target: /data/logger-client/config/logger-client.properties
networks:
- basnet
deploy:
placement:
constraints:
- node.hostname == live-manager-1
command: /bin/sh -c "rm /usr/local/tomcat/conf/Catalina/localhost/ROOT.xml && envsubst < /tmp/context.xml > /usr/local/tomcat/conf/Catalina/localhost/ws.xml && catalina.sh run"
biocachehub:
image: bioatlas/ala-biocachehub:v3.2.9-BAS
depends_on:
- biocacheservice
env_file: ./env/.envbiocachehub
environment:
JAVA_OPTS: -Xmx4g -Xms128m -Xss256k -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom -Dlog4j2.formatMsgNoLookups=true
configs:
- source: config_ala_hub
target: /data/ala-hub/config/ala-hub-config.properties
networks:
- basnet
nameindex:
image: bioatlas/ala-nameindex:v3.5
#image: bioatlas/ala-dyntaxaindex:v0.4
command: /bin/ash
volumes:
- data_nameindex_old:/data/lucene/namematching
networks:
- basnet
deploy:
restart_policy:
condition: none
biocachebackend:
image: bioatlas/ala-biocachebackend:v2.6.0
command: /bin/ash
environment:
- BIOCACHE_MEMORY_OPTS=-Xmx16g -Xms1g -Xss1024k
volumes:
- data_nameindex_old:/data/lucene/namematching
- data_biocachebackend:/data
configs:
- source: config_blacklist
target: /data/biocache/config/blacklistMediaUrls.txt
- source: config_biocache
target: /data/biocache/config/biocache-config.properties
networks:
- basnet
deploy:
restart_policy:
condition: none
placement:
constraints:
- node.hostname == live-manager-1
volumes:
data_nameindex_old:
driver: local
driver_opts:
type: nfs
o: nfsvers=4,addr=live-manager-1,rw
device: ":/docker_nfs/var/volumes/data_nameindex_old"
data_biocachebackend:
driver: local
driver_opts:
type: nfs
o: nfsvers=4,addr=live-manager-1,rw
device: ":/docker_nfs/var/volumes/data_biocachebackend"