-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml.tpl
314 lines (296 loc) · 9.11 KB
/
docker-compose.yml.tpl
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
php:
build: ./php
ports:
- "9000"
volumes:
- ./nginx/georchestra-site:/usr/share/nginx/georchestra
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
nginx:
build: ./nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./logs:/tmp/nginx_logs
- ./nginx/georchestra-site:/usr/share/nginx/georchestra
links:
- php:php_host
- proxy:proxy_host
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
environment:
SSL_PASSPHRASE: {{SSL_PASSPHRASE}}
SSL_COUNTRY: {{SSL_COUNTRY}}
SSL_STATE: {{SSL_STATE}}
SSL_LOCALITY: {{SSL_LOCALITY}}
SSL_ORGANISATION: {{SSL_ORGANISATION}}
SSL_UNIT: {{SSL_UNIT}}
GEORCHESTRA_HOSTNAME: {{GEORCHESTRA_HOSTNAME}}
database:
build: ./postgresql
ports:
- "5432:5432"
volumes:
- ./logs:/var/log/postgresql
- ./volumes/postgresql_data:/var/lib/postgresql
- ./postgresql/import:/tmp/import-pgsql
environment:
DB_MAIN_USER: {{DB_MAIN_USER}}
DB_MAIN_USER_PASS: {{DB_MAIN_USER_PASS}}
DB_GEORCHESTRA_PASS: {{DB_GEORCHESTRA_PASS}}
DB_GEONETWORK_PASS: {{DB_GEONETWORK_PASS}}
GEORCHESTRA_HOSTNAME: {{GEORCHESTRA_HOSTNAME}}
GEOSERVER_USER_PASS: {{GEOSERVER_USER_PASS}}
ldap:
build: ./ldap
ports:
- "389:389"
volumes:
- ./logs:/var/log/ldap
- ./volumes/ldap_data/slapd.d:/etc/ldap/slapd.d
- ./volumes/ldap_data/lib:/var/lib/ldap
- ./ldap/cron.weekly:/etc/cron.weekly
- ./ldap/import:/tmp/ldap-import
environment:
SLAPD_PASSWORD: {{SLAPD_PASSWORD}}
GEOSERVER_USER_PASS: {{GEOSERVER_USER_PASS}}
SASL_ENABLED: {{SASL_ENABLED}}
SASL_REMOTE_LDAP_IP: {{SASL_REMOTE_LDAP_IP}}
SASL_REMOTE_SEARCH_BASE: {{SASL_REMOTE_SEARCH_BASE}}
SASL_REMOTE_FILTER: {{SASL_REMOTE_FILTER}}
SASL_REMOTE_BIND_DN: {{SASL_REMOTE_BIND_DN}}
SASL_REMOTE_PASSWORD: {{SASL_REMOTE_PASSWORD}}
proxy:
build: ./proxy
privileged: true
ports:
- "8080:8080"
links:
- database:database_host
- ldap:ldap_host
- cas:cas_host
- header:header_host
- geonetwork:geonetwork_host
- mapfishapp:mapfishapp_host
- analytics:analytics_host
- catalogapp:catalogapp_host
- downloadform:downloadform_host
- extractorapp:extractorapp_host
- ldapadmin:ldapadmin_host
- geoserver:geoserver_host
- geofence:geofence_host
- geowebcache:geowebcache_host
- kibana:kibana_host
volumes:
- ./logs:/tmp/georchestra
- ./logs/tomcat/proxy:/usr/local/tomcat/logs
environment:
JAVA_OPTS: "-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Xms512m -Xmx512m"
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
- proxy_host:127.0.0.1
cas:
build: ./cas
privileged: true
ports:
- "8080"
links:
- database:database_host
- ldap:ldap_host
volumes:
- ./logs:/tmp/georchestra
- ./logs/tomcat/cas:/usr/local/tomcat/logs
environment:
JAVA_OPTS: "-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Xms512m -Xmx512m"
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
- cas_host:127.0.0.1
header:
build: ./header
privileged: true
ports:
- "8080"
volumes:
- ./logs:/tmp/georchestra
- ./logs/tomcat/header:/usr/local/tomcat/logs
environment:
JAVA_OPTS: "-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Xms256m -Xmx256m"
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
geonetwork:
build: ./geonetwork
privileged: true
ports:
- "8080"
links:
- database:database_host
- ldap:ldap_host
- cas:cas_host
volumes:
- ./logs:/tmp/georchestra
- ./logs/tomcat/geonetwork:/usr/local/tomcat/logs
- ./volumes/geonetwork_datadir:/usr/local/tomcat/geonetwork_datadir
environment:
JAVA_OPTS: "-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Xms2G -Xmx2G -Dgeonetwork.dir=/usr/local/tomcat/geonetwork_datadir -Dgeonetwork.schema.dir=/usr/local/tomcat/geonetwork_datadir/config/schema_plugins -Dgeonetwork.jeeves.configuration.overrides.file=/usr/local/tomcat/webapps/geonetwork/WEB-INF/config-overrides-georchestra.xml -Djava.util.prefs.userRoot=/tmp/georchestra -Djava.util.prefs.systemRoot=/tmp/georchestra"
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
mapfishapp:
build: ./mapfishapp
privileged: true
ports:
- "8080"
links:
- database:database_host
volumes:
- ./logs:/tmp/georchestra
- ./logs/tomcat/mapfishapp:/usr/local/tomcat/logs
environment:
JAVA_OPTS: "-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Xms2G -Xmx2G"
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
analytics:
build: ./analytics
privileged: true
ports:
- "8080"
links:
- database:database_host
volumes:
- ./logs:/tmp/georchestra
- ./logs/tomcat/analytics:/usr/local/tomcat/logs
environment:
JAVA_OPTS: "-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Xms256m -Xmx256m"
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
catalogapp:
build: ./catalogapp
privileged: true
ports:
- "8080"
links:
- database:database_host
volumes:
- ./logs:/tmp/georchestra
- ./logs/tomcat/catalogapp:/usr/local/tomcat/logs
environment:
JAVA_OPTS: "-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Xms256m -Xmx256m"
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
downloadform:
build: ./downloadform
privileged: true
ports:
- "8080"
links:
- database:database_host
volumes:
- ./logs:/tmp/georchestra
- ./logs/tomcat/downloadform:/usr/local/tomcat/logs
environment:
JAVA_OPTS: "-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Xms256m -Xmx256m"
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
extractorapp:
build: ./extractorapp
privileged: true
ports:
- "8080"
links:
- database:database_host
volumes:
- ./logs:/tmp/georchestra
- ./logs/tomcat/extractorapp:/usr/local/tomcat/logs
- ./volumes/extractor_tmpdir:/usr/local/tomcat/extractor_tmpdir
environment:
JAVA_OPTS: "-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Xms2G -Xmx2G -Dorg.geotools.referencing.forceXY=true -Dextractor.storage.dir=/usr/local/tomcat/extractor_tmpdir -Djava.util.prefs.userRoot=/tmp/georchestra -Djava.util.prefs.systemRoot=/tmp/georchestra"
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
ldapadmin:
build: ./ldapadmin
privileged: true
ports:
- "8080"
links:
- database:database_host
- ldap:ldap_host
volumes:
- ./logs:/tmp/georchestra
- ./logs/tomcat/ldapadmin:/usr/local/tomcat/logs
environment:
JAVA_OPTS: "-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Xms256m -Xmx256m"
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
geofence:
build: ./geofence
privileged: true
ports:
- "8080"
links:
- database:database_host
- ldap:ldap_host
volumes:
- ./logs:/tmp/georchestra
- ./logs/tomcat/geofence:/usr/local/tomcat/logs
environment:
JAVA_OPTS: "-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Xms512m -Xmx512m"
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
geoserver:
build: ./geoserver
privileged: true
ports:
- "8080"
links:
- database:database_host
- geofence:geofence_host
volumes:
- ./logs:/tmp/georchestra
- ./logs/tomcat/geoserver:/usr/local/tomcat/logs
- ./volumes/geoserver_datadir:/usr/local/tomcat/geoserver_datadir
environment:
JAVA_OPTS: "-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Xms2G -Xmx2G -XX:PermSize=256m -DGEOSERVER_DATA_DIR=/usr/local/tomcat/geoserver_datadir -Dfile.encoding=UTF8 -Djavax.servlet.request.encoding=UTF-8 -Djavax.servlet.response.encoding=UTF-8 -server -XX:+UseParNewGC -XX:ParallelGCThreads=2 -XX:SoftRefLRUPolicyMSPerMB=36000 -XX:NewRatio=2 -XX:+AggressiveOpts -Djava.library.path=/usr/lib/jni:/opt/libjpeg-turbo/lib64"
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
geowebcache:
build: ./geowebcache
privileged: true
ports:
- "8080"
volumes:
- ./logs:/tmp/georchestra
- ./logs/tomcat/geowebcache:/usr/local/tomcat/logs
- ./volumes/geowebcache_cachedir:/usr/local/tomcat/geowebcache_cachedir
environment:
JAVA_OPTS: "-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Xms1G -Xmx1G -XX:PermSize=256m -Djava.library.path=/usr/lib/jni -DGEOWEBCACHE_CACHE_DIR=/usr/local/tomcat/geowebcache_cachedir"
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
kibana:
build: ./kibana
privileged: true
ports:
- "5601"
- "9200"
- "5000"
volumes:
- ./kibana/logstash/conf.d:/etc/logstash/conf.d
- ./kibana/ssl:/etc/pki/tls/certs
environment:
SSL_PASSPHRASE: {{SSL_PASSPHRASE}}
SSL_COUNTRY: {{SSL_COUNTRY}}
SSL_STATE: {{SSL_STATE}}
SSL_LOCALITY: {{SSL_LOCALITY}}
SSL_ORGANISATION: {{SSL_ORGANISATION}}
SSL_UNIT: {{SSL_UNIT}}
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}
logforwarder:
build: ./logforwarder
privileged: true
links:
- kibana:kibana_host
volumes:
- ./logs:/var/log/georchestra-docker
- ./kibana/ssl:/etc/pki/tls/certs
extra_hosts:
- {{GEORCHESTRA_HOSTNAME}}:{{GEORCHESTRA_PUBLIC_IP}}