-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose-example.yml
310 lines (284 loc) · 10.9 KB
/
docker-compose-example.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
version: '3.4'
x-qwc-service-variables: &qwc-service-variables
JWT_SECRET_KEY: $JWT_SECRET_KEY
JWT_COOKIE_CSRF_PROTECT: 'True'
# Uncomment if the application is exclusively run over HTTPS to ensure cookies are only sent with HTTPS requests
# JWT_COOKIE_SECURE: 'True'
# Set these to override the UID/GID which runs uwsgi. Useful to ensure uwsgi runs under the same user/group
# which owns the shared volumes on host, avoiding the need to change the ownership/permissions of those files/folders.
#SERVICE_UID: 1000
#SERVICE_GID: 1000
# Uncomment this for multi-tenant support, see also api-gateway/nginx-example-multitenant.conf
# TENANT_HEADER: Tenant
services:
qwc-postgis:
image: sourcepole/qwc-base-db:15 # 15 refers to the Postgres major version
environment:
POSTGRES_PASSWORD: '' # TODO: Set your postgres password here!
volumes:
- ./volumes/db:/var/lib/postgresql/docker
# If you don't want/need the demo data, you can remove this line
- ./volumes/demo-data/setup-demo-data.sh:/docker-entrypoint-initdb.d/2_setup-demo-data.sh
ports:
- "127.0.0.1:5439:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
qwc-config-db-migrate:
image: sourcepole/qwc-base-db-migrate:latest-2024-lts
volumes:
- ./pg_service.conf:/tmp/pg_service.conf:ro
qwc-qgis-server:
image: sourcepole/qwc-qgis-server:3.34
# ports:
# - "127.0.0.1:8001:80"
volumes:
- ./volumes/qgs-resources:/data:ro
- ./pg_service.conf:/etc/postgresql-common/pg_service.conf:ro
# This plugin will disables the QGIS Server WMS capabilities cache
# If can avoid issues where served capabilities do not reflect the state of a changed project,
# with the downside that the serving capabilities will take longer.
# - ./volumes/qgis-server-plugins/clear_capabilities:/usr/share/qgis/python/plugins/clear_capabilities:ro
qwc-config-service:
# image: sourcepole/qwc-config-generator:latest-2024-lts
# Lightweight variant without qgis, use if you don't need the split_categorized_layers feature
image: sourcepole/qwc-config-generator:latest-2024-lts-noqgis
environment:
<<: *qwc-service-variables
INPUT_CONFIG_PATH: '/srv/qwc_service/config-in'
OUTPUT_CONFIG_PATH: '/srv/qwc_service/config-out'
GENERATE_DYNAMIC_KVRELS: 1
# ports:
# - "127.0.0.1:5010:9090"
volumes:
- ./volumes/config-in:/srv/qwc_service/config-in:ro
- ./volumes/config:/srv/qwc_service/config-out
- ./volumes/qwc2:/qwc2
- ./volumes/qgs-resources:/data
- ./pg_service.conf:/srv/pg_service.conf:ro
qwc-ogc-service:
image: sourcepole/qwc-ogc-service:latest-2024-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/ows'
volumes:
- ./volumes/config:/srv/qwc_service/config:ro
# ports:
# - "127.0.0.1:5013:9090"
qwc-data-service:
image: sourcepole/qwc-data-service:latest-2024-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v1/data'
ATTACHMENTS_BASE_DIR: '/attachments'
MAX_ATTACHMENT_FILE_SIZE: 1048576
volumes:
- ./volumes/config:/srv/qwc_service/config:ro
- ./volumes/attachments:/attachments
# NOTE: you can mount a pg_service-write.conf with R/W DB users and have R/O DB users in the main pg_service.conf
- ./pg_service-write.conf:/srv/pg_service.conf:ro
# ports:
# - "127.0.0.1:5012:9090"
# clamav:
# image: clamav/clamav:stable
qwc-solr:
image: solr:8.11-slim
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- gdi
- /gdi_conf
ports:
- "127.0.0.1:8983:8983"
volumes:
- ./volumes/solr/configsets/gdi:/gdi_conf:ro
# Configuration is copied once from /gdi_conf/ to /var/solr/data/
# Change ownership to solr user with `sudo chown 8983:8983 volumes/solr/data`
- ./volumes/solr/data:/var/solr/data
# Protect admin GUI and admin API with Basic auth
# Change "#credentials" to "credentials" in security.json for adding a user 'solr' with password 'SolrRocks'
#- ./volumes/solr/security.json:/var/solr/data/security.json:ro
qwc-fulltext-search-service:
image: sourcepole/qwc-fulltext-search-service:latest-2024-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v2/search'
# ports:
# - "127.0.0.1:5011:9090"
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
qwc-map-viewer:
# Pre-built qwc2 app
image: sourcepole/qwc-map-viewer-demo:latest-2024-lts
# Or with own viewer build placed in volumes/qwc2
# image: sourcepole/qwc-map-viewer-base:latest-2024-lts
# Update config.json with:
# curl -L -o volumes/config-in/config.json https://github.com/qgis/qwc2-demo-app/raw/master/static/config.json
# and generate service configuration
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/'
# ports:
# - "127.0.0.1:5030:9090"
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
# When using qwc-map-viewer-demo:
- ./volumes/qwc2/assets:/qwc2/assets:ro
# When using own viewer build with qwc-map-viewer-base:
#- ./volumes/qwc2:/qwc2:ro
qwc-admin-gui:
image: sourcepole/qwc-admin-gui:latest-2024-lts
environment:
<<: *qwc-service-variables
# Don't enable JWT CSRF protection for admin gui, it conflicts with CSRF protection offered by Flask-WTF
JWT_COOKIE_CSRF_PROTECT: 'False'
# When setting user info fields, make sure to create corresponding columns (i.e. "surname", "first_name", "street", etc) in qwc_config.user_infos
# USER_INFO_FIELDS: '[{"title": "Surname", "name": "surname", "type": "text", "required": true}, {"title": "First name", "name": "first_name", "type": "text", "required": true}, {"title": "Street", "name": "street", "type": "text"}, {"title": "ZIP", "name": "zip", "type": "text"}, {"title": "City", "name": "city", "type": "text"}]'
#TOTP_ENABLED: 'False'
GROUP_REGISTRATION_ENABLED: 'True'
#IDLE_TIMEOUT: 600
DEFAULT_LOCALE: 'en'
MAIL_SUPPRESS_SEND: 'True'
MAIL_DEFAULT_SENDER: '[email protected]'
# ports:
# - "127.0.0.1:5031:9090"
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
# required by themes plugin:
# - ./volumes/config-in:/srv/qwc_service/config-in:rw
# - ./volumes/qwc2:/qwc2
# - ./volumes/qgs-resources:/qgs-resources
# - ./volumes/info-templates:/info_templates
# qwc-registration-gui:
# image: sourcepole/qwc-registration-gui:latest-2024-lts
# environment:
# <<: *qwc-service-variables
# SERVICE_MOUNTPOINT: '/registration'
# DEFAULT_LOCALE: 'en'
# ADMIN_RECIPIENTS: '[email protected]'
# MAIL_SUPPRESS_SEND: 'True'
# MAIL_DEFAULT_SENDER: '[email protected]'
# # ports:
# # - "127.0.0.1:5032:9090"
# volumes:
# - ./pg_service.conf:/srv/pg_service.conf:ro
qwc-auth-service:
image: sourcepole/qwc-db-auth:latest-2024-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/auth'
# https://flask-jwt-extended.readthedocs.io/en/stable/options/#cookie-options
JWT_COOKIE_SAMESITE: 'Strict'
# Enable the following in production (requires https):
#JWT_COOKIE_SECURE: 'True'
#TOTP_ENABLED: 'False'
#TOTP_ISSUER_NAME: 'QWC Services'
MAIL_SUPPRESS_SEND: 'True'
MAIL_DEFAULT_SENDER: '[email protected]'
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
# ports:
# - "127.0.0.1:5017:9090"
qwc-elevation-service:
image: sourcepole/qwc-elevation-service:latest-2024-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/elevation'
volumes:
- ./volumes/config:/srv/qwc_service/config:ro
# ports:
# - "127.0.0.1:5002:9090"
qwc-permalink-service:
image: sourcepole/qwc-permalink-service:latest-2024-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v1/permalink'
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
# ports:
# - "127.0.0.1:5001:9090"
# qwc-print-service:
# image: sourcepole/qwc-print-service:latest-2024-lts
# environment:
# <<: *qwc-service-variables
# SERVICE_MOUNTPOINT: '/api/v1/print'
# volumes:
# - ./volumes/config:/srv/qwc_service/config:ro
# # ports:
# # - "127.0.0.1:5020:9090"
qwc-feature-info-service:
image: sourcepole/qwc-feature-info-service:latest-2024-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v1/featureinfo'
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
- ./volumes/info-templates:/info_templates:ro
# ports:
# - "127.0.0.1:5015:9090"
# qwc-document-service:
# image: sourcepole/qwc-document-service:latest-2024-lts
# environment:
# <<: *qwc-service-variables
# SERVICE_MOUNTPOINT: '/api/v1/document'
# volumes:
# - ./volumes/config:/srv/qwc_service/config:ro
# depends_on:
# - jasper-reporting-service
# # ports:
# # - "127.0.0.1:5018:9090"
# jasper-reporting-service:
# image: sourcepole/jasper-reporting-service:latest-2024-lts
# volumes:
# - ./volumes/jasper-reports/config:/srv/jasper-reporting-service/config:ro
# - ./volumes/jasper-reports/demo:/srv/jasper-reporting-service/demo:ro
# # ports:
# # - "127.0.0.1:8002:8080"
qwc-mapinfo-service:
image: sourcepole/qwc-mapinfo-service:latest-2024-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v1/mapinfo'
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
# ports:
# - "127.0.0.1:5016:9090"
qwc-legend-service:
image: sourcepole/qwc-legend-service:latest-2024-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v1/legend'
volumes:
- ./volumes/config:/srv/qwc_service/config:ro
- ./volumes/legends:/legends
# ports:
# - "127.0.0.1:5014:9090"
qwc-api-gateway:
image: nginx:1.19
ports:
- "8088:80"
volumes:
- ./api-gateway/nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- qwc-postgis
- qwc-config-service
- qwc-qgis-server
- qwc-ogc-service
- qwc-map-viewer
- qwc-auth-service
- qwc-feature-info-service
- qwc-legend-service
- qwc-mapinfo-service
- qwc-permalink-service
- qwc-elevation-service
- qwc-fulltext-search-service
- qwc-data-service
- qwc-admin-gui
#- qwc-registration-gui