Repository navigation
Expand file tree
/
Copy pathdocker-compose-example.yml
More file actions
282 lines (258 loc) · 9.14 KB
/
Copy pathdocker-compose-example.yml
File metadata and controls
282 lines (258 loc) · 9.14 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
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
version: '3.4'
x-qwc-service-variables: &qwc-service-variables
JWT_SECRET_KEY: $JWT_SECRET_KEY
JWT_COOKIE_CSRF_PROTECT: '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
services:
qwc-postgis:
image: sourcepole/qwc-demo-db:v2022.04.26
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
ports:
- "127.0.0.1:5439:5432"
volumes:
- ./volumes/db:/var/lib/postgresql/docker
qwc-qgis-server:
image: sourcepole/qwc-qgis-server:3.22-plugins
ports:
- "127.0.0.1:8001:80"
volumes:
- ./volumes/qgs-resources:/data:ro
- ./pg_service.conf:/etc/postgresql-common/pg_service.conf:ro
qwc-config-service:
image: sourcepole/qwc-config-generator:v2022.08.22
# Lightweight variant without qgis, use if you don't need the split_categorized_layers feature
# image: sourcepole/qwc-config-generator:v2022.08.22-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:v2022.08.22
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:v2022.08.22
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v1/data'
ATTACHMENTS_BASE_DIR: '/attachments'
MAX_ATTACHMENT_FILE_SIZE: 1048576
volumes:
- ./pg_service-write.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
- ./volumes/attachments:/attachments
ports:
- "127.0.0.1:5012:9090"
qwc-solr:
image: solr:8.11.1-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:v2022.08.22
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:
image: sourcepole/qwc-map-viewer-demo:v2022.08.25
# Update config.json with:
# curl -o volumes/config-in/config.json https://github.com/qgis/qwc2-demo-app/raw/v2022.01.08/static/config.json
# and generate service configuration
# With custom build added via volume:
# image: sourcepole/qwc-map-viewer-base:v2022.08.25
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:v2022.08.19
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'
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: 'from@example.com'
ports:
- "127.0.0.1:5031:9090"
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
# qwc-registration-gui:
# image: sourcepole/qwc-registration-gui:v2022.08.22
# environment:
# <<: *qwc-service-variables
# SERVICE_MOUNTPOINT: '/registration'
# DEFAULT_LOCALE: 'en'
# ADMIN_RECIPIENTS: 'admin@example.com'
# MAIL_SUPPRESS_SEND: 'True'
# MAIL_DEFAULT_SENDER: 'from@example.com'
# ports:
# - "127.0.0.1:5032:9090"
# volumes:
# - ./pg_service.conf:/srv/pg_service.conf:ro
qwc-auth-service:
image: sourcepole/qwc-db-auth:v2022.08.22
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: 'from@example.com'
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:v2022.08.22
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:v2022.08.22
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:v2022.08.22
# 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:v2022.08.22
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v1/featureinfo'
# SKIP_EMPTY_ATTRIBUTES: 1
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
ports:
- "127.0.0.1:5015:9090"
# qwc-document-service:
# image: sourcepole/qwc-document-service:v2022.08.22
# 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:v2022.01.27
# 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:v2022.08.22
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:v2022.08.22
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