-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-stack.yml
378 lines (357 loc) · 11.2 KB
/
docker-stack.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
version: "3.7"
networks:
sauber-network:
attachable: true
volumes:
db_data:
geoserver_data:
raster_data:
json_data:
lanuv_data:
lubw_data:
um_data:
um_logs:
um_licence:
um_users:
secrets:
postgrest_password:
file: ./secrets/pgrst_password.txt
name: pgrest_password_v3
postgrest_jwt_secret:
file: ./secrets/pgrst_jwt_secret.txt
name: pgrest_sauber_v3
lubw_user:
file: ./secrets/lubw_user.txt
name: lubw_user_v1
lubw_password:
file: ./secrets/lubw_password.txt
name: lubw_password_v1
lubw_server:
file: ./secrets/lubw_server.txt
name: lubw_server_v1
geoserver_user:
file: ./secrets/geoserver_user.txt
name: geoserver_user_v1
geoserver_password:
file: ./secrets/geoserver_password.txt
name: geoserver_password_v2
app_password:
file: ./secrets/app_password.txt
name: app_password_v3
sauber_user_password:
file: ./secrets/sauber_user_password.txt
name: sauber_user_password_v2
sauber_manager_password:
file: ./secrets/sauber_manager_password.txt
name: sauber_manager_password_v2
postgres_init_password:
file: ./secrets/postgres_init_password.txt
name: postgres_init_password_v2
hhi_rest_user:
file: ./secrets/hhi_rest_user.txt
name: hhi_rest_user_v1
hhi_rest_pw:
file: ./secrets/hhi_rest_pw.txt
name: hhi_rest_pw_v1
hhi_ip_address:
file: ./secrets/hhi_ip_address.txt
name: hhi_ip_addr_v1
services:
db:
image: "sauberprojekt/db:${TAG:-master}"
networks:
- sauber-network
volumes:
- db_data:/var/lib/postgresql/data
- ./geoserver_mnt/raster_data:/opt/raster_data:ro
- ./db_backups:/home/backups/database/postgresql
secrets:
- postgrest_jwt_secret
- postgrest_password
- sauber_manager_password
- sauber_user_password
- app_password
- postgres_init_password
environment:
- PGRST_PASSWORD_FILE=/run/secrets/postgrest_password
- PGRST_JWT_SECRET_FILE=/run/secrets/postgrest_jwt_secret
- SAUBER_MANAGER_PASSWORD_FILE=/run/secrets/sauber_manager_password
- SAUBER_USER_PASSWORD_FILE=/run/secrets/sauber_user_password
- APP_PASSWORD_FILE=/run/secrets/app_password
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_init_password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
deploy:
replicas: 1
restart_policy:
condition: on-failure
ports:
- "5440:5432"
geoserver:
image: "meggsimum/geoserver:2.20.1"
networks:
- sauber-network
secrets:
- geoserver_user
- geoserver_password
environment:
- USE_CORS=0
- USE_VECTOR_TILES=1
- EXTRA_JAVA_OPTS=-Xms1g -Xmx2g
- GEOSERVER_CSRF_WHITELIST=sauber-sdi.meggsimum.de
volumes:
- ./geoserver_mnt/geoserver_data:/opt/geoserver_data/:Z
- ./geoserver_mnt/raster_data:/opt/raster_data:Z
# - ./geoserver_mnt/additional_libs:/opt/additional_libs/:Z
deploy:
replicas: 1
restart_policy:
condition: on-failure
depends_on:
- db
ports:
- "8080:8080"
geoserver_init:
image: "sauberprojekt/geoserver_init:${TAG:-master}"
networks:
- sauber-network
secrets:
- geoserver_user
- geoserver_password
- app_password
environment:
- GSINIT_WS=station_data,image_mosaics,simulation
- GSINIT_STATION_WS=station_data
- GSINIT_STATION_DS=station_data
- GSINIT_PG_HOST=db
- GSINIT_PG_PORT=5432
- GSINIT_PG_SCHEMA=station_data
- GSINIT_PG_DB=sauber_data
- GSINIT_VERBOSE=1
- GSINIT_PROXY_BASE_URL=https://sauber-sdi.meggsimum.de/geoserver
deploy:
replicas: 1
restart_policy:
condition: on-failure
depends_on:
- geoserver
command: ["./wait-for.sh", "geoserver:8080", "postgrest:3000", "--", "npm", "start"]
postgrest:
image: "sauberprojekt/postgrest:${TAG:-master}"
networks:
- sauber-network
secrets:
- postgrest_jwt_secret
- postgrest_password
- sauber_manager_password
environment:
- PGRST_PASSWORD_FILE=/run/secrets/postgrest_password
- PGRST_USER=authenticator
- PGRST_DB_POOL=5
- PGRST_MAX_ROWS=1000
- PGRST_JWT_SECRET_FILE=/run/secrets/postgrest_jwt_secret
- PGRST_DB_SERVER=db
- PGRST_DB_PORT=5432
- PGRST_DB_NAME=sauber_data
- PGRST_DB_SCHEMA=image_mosaics
- PGRST_DB_ANON_ROLE=anon
deploy:
restart_policy:
condition: on-failure
depends_on:
- db
ports:
- "3000:3000"
um_server:
image: "store/softwareag/universalmessaging-server:10.5"
networks:
- sauber-network
# secrets:
#environment:
# deploy:
# restart_policy:
# condition: on-failure
# depends_on:
# healthcheck:
volumes:
- um_data:/opt/softwareag/UniversalMessaging/server/umserver/data
- um_logs:/opt/softwareag/UniversalMessaging/server/umserver/logs
- um_licence:/opt/softwareag/UniversalMessaging/server/umserver/licence
- um_users:/opt/softwareag/common/conf
ports:
- "9876:9000"
# can be commented in for local debugging, no use in production
# test_messenger:
# image: "sauberprojekt/test_messenger:${TAG:-master}"
# networks:
# - sauber-network
# environment:
# - UM_SERVER=um_server:9000
# - UM_CHANNEL=raster_data
# - CLASSPATH=/opt/target/classes
# depends_on:
# - um_server
# tty:
# true
raster_downloader:
image: "sauberprojekt/raster_download:${TAG:-master}"
networks:
- sauber-network
secrets:
- app_password
- hhi_rest_user
- hhi_rest_pw
- hhi_ip_address
- geoserver_user
- geoserver_password
environment:
- APP_PASSWORD_FILE=/run/secrets/app_password
- HHI_REST_USER_FILE=/run/secrets/hhi_rest_user
- HHI_REST_PASSWORD_FILE=/run/secrets/hhi_rest_password
- GEOSERVER_USER_FILE=/run/secrets/geoserver_user
- GEOSERVER_PASSWORD_FILE=/run/secrets/geoserver_password
- DB_USER=app
- UM_CHANNEL=raster_data
- UM_SERVER=um_server:9000
# deploy:
# restart_policy:
# condition: always
depends_on:
- um_server
volumes:
- ./geoserver_mnt/raster_data:/opt/raster_data:Z
- ./geoserver_mnt/geoserver_data:/opt/geoserver_data:Z
tty:
true
json_downloader:
image: "sauberprojekt/json_download:${TAG:-master}"
networks:
- sauber-network
secrets:
- app_password
- hhi_rest_user
- hhi_rest_pw
- hhi_ip_address
environment:
- SAUBER_APP_PASSWORD_FILE=/run/secrets/app_password
- HHI_REST_USER_FILE=/run/secrets/hhi_rest_user
- HHI_REST_PASSWORD_FILE=/run/secrets/hhi_rest_password
- HHI_REST_PASSWORD_FILE=/run/secrets/hhi_ip_address
- DB_USER=app
- UM_CHANNEL=station_data
- UM_SERVER=um_server:9000
# deploy:
# restart_policy:
# condition: always
depends_on:
- um_server
volumes:
- json_data:/json_data/:Z
tty:
true
lanuv_downloader:
image: "sauberprojekt/lanuv_download:${TAG:-master}"
networks:
- sauber-network
secrets:
- app_password
environment:
- APP_PASSWORD_FILE=/run/secrets/app_password
depends_on:
- um_server
volumes:
- lanuv_data:/lanuv_data
tty:
true
lubw_downloader:
image: "sauberprojekt/lubw_download:${TAG:-master}"
networks:
- sauber-network
secrets:
- app_password
- lubw_user
- lubw_password
- lubw_server
environment:
- APP_PASSWORD_FILE=/run/secrets/app_password
- LUBW_PASSWORD_FILE=/run/secrets/lubw_password
- LUBW_USER_FILE=/run/secrets/lubw_user
- LUBW_SERVER_FILE=/run/secrets/lubw_server
depends_on:
- um_server
volumes:
- lubw_data:/data/xml_data
tty:
true
geoserver_raster_publisher:
image: "sauberprojekt/geoserver_raster_publisher:${TAG:-master}"
networks:
- sauber-network
secrets:
- postgrest_password
- geoserver_user
- geoserver_password
- sauber_manager_password
environment:
- GSPUB_PG_REST_USER=anon
- GSPUB_GS_REST_URL=http://geoserver:8080/geoserver/rest/
deploy:
restart_policy:
condition: on-failure
depends_on:
- postgrest
- geoserver
station_layer_creator:
image: "sauberprojekt/station_layer_creator:${TAG:-master}"
networks:
- sauber-network
secrets:
- sauber_manager_password
- geoserver_user
- geoserver_password
#environment:
# - STCR_STATIONS_TYPENAME=station_data:fv_stations
deploy:
restart_policy:
condition: on-failure
depends_on:
- db
- geoserver
# can be commented in for local debugging, no use in production
# um-ol-demo:
# image: sauberprojekt/um_ol_demo:${TAG:-master}
# networks:
# - sauber-network
# ports:
# - "9999:80"
# can be commented in for local debugging, no use in production
# um-js-demo:
# image: sauberprojekt/um_js_demo:${TAG:-master}
# networks:
# - sauber-network
# ports:
# - "9998:80"
proxy-webserver:
image: nginx:stable
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- /etc/letsencrypt:/etc/ssl/certs:ro
networks:
- sauber-network
depends_on:
- geoserver
- um_server
- um-js-demo
# can be commented in for local debugging, no use in production
# um-publisher:
# image: um_publisher:latest
# networks:
# - sauber-network
# ports:
# - "9990:80"