-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
180 lines (164 loc) · 5.43 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
version: '3.7'
services:
webserver:
image: nginx:alpine
container_name: webserver
ports:
- 80:80
volumes:
- ./env/.htpasswd:/etc/nginx/htpasswd
- ./webserver/app.conf:/etc/nginx/conf.d/app.conf:ro
cassandradb:
image: gbiffrance/ala-cassandra:1.0
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"
solr:
image: gbiffrance/ala-solr:1.0
container_name: solr
environment:
SOLR_HEAP: 4g
volumes:
- data_solr:/opt/solr
ports:
- 8983:8983
collectory:
image: gbiffrance/ala-collectory:1.1
container_name: collectory
depends_on:
- mysqldb
links:
- mysqldb
environment:
- COLLECTORY_HOSTNAME=metadonnees.gbifdev.fr
- PORTAL_HOSTNAME=portail.gbifdev.fr
- HUBS_HOSTNAME=recherche.gbifdev.fr
- JAVA_OPTS=-Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1056
ports:
- 1056:1056
env_file: ./env/.envcollectory
volumes:
- data_collectory:/data/ala-collectory
- ./config/ala-collectory-config.properties:/tmp/ala-collectory-config.properties:ro
- ./config/ala-collectory-server.xml:/usr/local/tomcat/conf/server.xml:ro
command: /bin/ash -c "envsubst < /tmp/ala-collectory-config.properties > /data/ala-collectory/config/ala-collectory-config.properties && catalina.sh run"
extra_hosts:
- "metadonnees.gbifdev.fr:172.17.0.1"
- "portail.gbifdev.fr:172.17.0.1"
- "recherche.gbifdev.fr:172.17.0.1"
mysqldb:
image: mysql:5.7
env_file: ./env/.envcollectory
container_name: mysqldb
volumes:
- ./config/my.cnf:/etc/mysql/my.cnf:ro
- db_data_collectory:/var/lib/mysql
biocacheservice:
image: gbiffrance/ala-biocacheservice:1.0
container_name: biocacheservice
depends_on:
- cassandradb
- solr
links:
- cassandradb
- solr
environment:
- HUBS_HOSTNAME=hubs.gbif.fr
- JAVA_OPTS=-Xmx1g -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
extra_hosts:
- "metadonnees.gbifdev.fr:172.17.0.1"
- "portail.gbifdev.fr:172.17.0.1"
- "recherche.gbifdev.fr:172.17.0.1"
biocachehub:
image: gbiffrance/ala-biocachehub:1.0
container_name: biocachehub
depends_on:
- biocacheservice
environment:
- JAVA_OPTS=-Xmx1g -Xms128m -Xss256k -Djava.awt.headless=true
volumes:
- ./config/dev-hub-config.properties:/data/ala-hub/config/ala-hub-config.properties:ro
- ./config/france-hub-server.xml:/usr/local/tomcat/conf/server.xml:ro
extra_hosts:
- "metadonnees.gbifdev.fr:172.17.0.1"
- "portail.gbifdev.fr:172.17.0.1"
- "recherche.gbifdev.fr:172.17.0.1"
nameindex:
image: gbiffrance/ala-dyntaxaindex:1.0
command: /bin/ash
container_name: nameindex
volumes:
- data_nameindex:/data/lucene/namematching
biocachebackend:
image: gbiffrance/ala-biocachebackend:0.1
container_name: biocachebackend
links:
- biocachehub
- biocacheservice
- collectory
- cassandradb
- solr
command: tail -f /dev/null
environment:
- BIOCACHE_MEMORY_OPTS=-Xmx1g -Xms1g -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1055
ports:
- 1055:1055
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
extra_hosts:
- "metadonnees.gbifdev.fr:172.17.0.1"
- "portail.gbifdev.fr:172.17.0.1"
- "recherche.gbifdev.fr:172.17.0.1"
static:
image: nginx:alpine
volumes:
- ./static:/usr/share/nginx/html
container_name: static
bieindex:
image: gbiffrance/ala-bieindex:1.0
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
loggerservice:
image: gbiffrance/ala-loggerservice:1.0
container_name: loggerservice
depends_on:
- mysqldblogger
links:
- mysqldblogger
environment:
- PORTAL_HOSTNAME=portail.gbifdev.fr
- 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:
- ./config/loggerservicedb:/docker-entrypoint-initdb.d
- db_data_loggerservice:/var/lib/mysql
volumes:
db_data_cassandra:
data_solr:
data_collectory:
db_data_collectory:
data_nameindex:
data_biocachebackend:
data_bieindex:
db_data_loggerservice: