-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·315 lines (311 loc) · 10.1 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
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
version: "3.7"
x-logging: &default-logging
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
services:
identifier:
image: semtech/mu-identifier:1.10.1
labels:
- "logging=true"
restart: always
logging: *default-logging
dispatcher:
image: semtech/mu-dispatcher:2.1.0-beta.2
volumes:
- ./config/dispatcher:/config
labels:
- "logging=true"
restart: always
logging: *default-logging
deltanotifier:
image: semtech/mu-delta-notifier:0.3.0
volumes:
- ./config/delta:/config
labels:
- "logging=true"
restart: always
logging: *default-logging
database:
image: semtech/sparql-parser:0.0.12
environment:
MU_SPARQL_ENDPOINT: "http://virtuoso:8890/sparql"
DATABASE_OVERLOAD_RECOVERY: "true"
DATABASE_COMPATIBILITY: "Virtuoso"
# Note: not sure wether it gets picked up properly, it is meant for healing-process which may make
# heavy queries
QUERY_MAX_PROCESSING_TIME: 605000
QUERY_MAX_EXECUTION_TIME: 605000
volumes:
- ./config/cl-authorization:/config
- ./data/mu-auth:/data
labels:
- "logging=true"
restart: always
logging: *default-logging
virtuoso:
image: redpencil/virtuoso:1.2.0-rc.1
environment:
SPARQL_UPDATE: "true"
DEFAULT_GRAPH: "http://mu.semte.ch/application"
volumes:
- ./data/db:/data
- ./config/virtuoso/virtuoso.ini:/data/virtuoso.ini # Note: on production override this setting
- ./config/virtuoso/:/opt/virtuoso-scripts
labels:
- "logging=true"
restart: always
logging: *default-logging
migrations:
image: semtech/mu-migrations-service:0.6.0
links:
- virtuoso:database
environment:
MU_SPARQL_TIMEOUT: "300"
volumes:
- ./config/migrations:/data/migrations
labels:
- "logging=true"
restart: always
logging: *default-logging
cache:
image: semtech/mu-cache:2.0.1
links:
- resource:backend
labels:
- "logging=true"
restart: always
logging: *default-logging
resource:
image: semtech/mu-cl-resources:feature-more-backtrace
environment:
CACHE_CLEAR_PATH: "http://cache/.mu/clear-keys"
volumes:
- ./config/resources:/config
labels:
- "logging=true"
restart: always
logging: *default-logging
login:
image: lblod/acmidm-login-service:0.12.0
environment:
MU_APPLICATION_AUTH_DISCOVERY_URL: "https://authenticatie-ti.vlaanderen.be/op"
MU_APPLICATION_AUTH_CLIENT_ID: "a2c0d6ea-01b4-4f68-920b-10834a943c27"
LOG_SINK_URL: "http://sink"
MU_APPLICATION_AUTH_JWK_PRIVATE_KEY: /config/jwk_private_key.json
MU_APPLICATION_AUTH_USERID_CLAIM: vo_id
MU_APPLICATION_AUTH_REDIRECT_URI: "https://mandatenbeheer.lblod.info/authorization/callback"
volumes:
- ./config/login:/config
labels:
- "logging=true"
restart: always
logging: *default-logging
impersonation:
image: lblod/impersonation-service:0.2.0
restart: always
labels:
- "logging=true"
logging: *default-logging
file:
image: semtech/mu-file-service:3.4.0
volumes:
- ./data/files:/share
labels:
- "logging=true"
restart: always
logging: *default-logging
frontend:
image: lblod/frontend-lokaal-mandatenbeheer:0.4.6
labels:
- "logging=true"
restart: always
logging: *default-logging
environment:
EMBER_ENVIRONMENT_NAME: "PROD"
EMBER_AUTHENTICATION_ENABLED: "true"
filehost:
image: nginx:1.15.2
volumes:
- ./config/filehost/nginx.conf:/etc/nginx/nginx.conf
- ./config/filehost/conf.d:/etc/nginx/conf.d
- ./data/files:/data:ro
labels:
- "logging=true"
restart: always
logging: *default-logging
sink:
image: nginx:1.15.2
volumes:
- ./config/sink/sink.conf:/etc/nginx/conf.d/default.conf
labels:
- "logging=true"
restart: always
logging: *default-logging
form-content:
image: lblod/form-content-service:0.0.8
restart: always
labels:
- "logging=true"
logging: *default-logging
volumes:
- ./config/form-content:/config
mandataris:
image: lblod/mandataris-service:0.4.1
labels:
- "logging=true"
restart: always
logging: *default-logging
volumes:
- ./data/files/burgemeester-benoemingen:/uploads
environment:
NOTIFICATION_CRON_PATTERN: 0 8 * * 1-5
EMAIL_FROM_MANDATARIS_EFFECTIEF: "[email protected]" # Must be the same as EMAIL_ADDRESS in deliver-email service
SEND_EMAIL_FOR_MANDATARIS_EFFECTIEF: false
BESLUIT_STAGING_GRAPH: http://mu.semte.ch/graphs/besluiten-consumed # must be the same as decision-ldes-client working graph
adressenregister:
image: lblod/adressenregister-fuzzy-search-service:0.6.3
labels:
- "logging=true"
restart: always
logging: *default-logging
modified:
image: lblod/track-modified-service:0.0.1
labels:
- "logging=true"
volumes:
- ./config/modified:/config
restart: always
logging: *default-logging
authorization-wrapper:
image: lblod/ldes-authorization-wrapper:0.0.2
labels:
- "logging=true"
restart: always
logging: *default-logging
volumes:
- ./config/authorization-wrapper:/config
##############################################################################
# LDES
##############################################################################
ldes-delta-pusher:
image: redpencil/ldes-delta-pusher:1.2.1
environment:
LDES_ENDPOINT: "http://ldes-backend"
LDES_BASE: "https://dev.mandatenbeheer.lblod.info/streams/ldes"
LDES_FOLDER: public # ignored as we have an ldes config that sets the stream folder
DATA_FOLDER: /data
CRON_HEALING: "0 0 0 * * *" # Every day at midnight
AUTO_HEALING: "true"
CRON_CHECKPOINT: "0 0 5 1 * *"
SUDO_QUERY_RETRY_TIMEOUT_INCREMENT_FACTOR: 0.003
SUDO_QUERY_RETRY_FOR_HTTP_STATUS_CODES: 429,500,502,503,504
MAX_PAGE_SIZE_BYTES: 10000000
INITIAL_STATE_LIMIT: 10000
# for catching up after restart
#LDES_STATUS_GRAPH: "http://mu.semte.ch/graphs/ldes-status"
DIRECT_DB_ENDPOINT: "http://virtuoso:8890/sparql"
WRITE_INITIAL_STATE: "false"
# for writing initial state
#WRITE_INITIAL_STATE: "true"
volumes:
- ./config/ldes-delta-pusher/:/config/
- ./data/ldes-feed/:/data/
restart: always
logging: *default-logging
labels:
- "logging=true"
links:
- virtuoso:database
ldes-backend:
image: redpencil/fragmentation-producer:0.4.2
restart: always
logging: *default-logging
labels:
- "logging=true"
environment:
BASE_URL: "https://dev.mandatenbeheer.lblod.info/streams/ldes/"
FOLDER_DEPTH: 1
PAGE_RESOURCES_COUNT: 20
LDES_STREAM_PREFIX: "https://dev.mandatenbeheer.lblod.info/streams/ldes/"
TIME_TREE_RELATION_PATH: "http://www.w3.org/ns/prov#generatedAtTime"
CACHE_SIZE: 10
DATA_FOLDER: "/data"
ENABLE_AUTH: "false"
volumes:
- "./data/ldes-feed/:/data/"
decision-ldes-client:
image: lblod/ldes-client:0.0.3
links:
- database:database
- virtuoso:virtuoso
restart: always
environment:
LDES_BASE: https://mandaten-besluiten.lblod.info/streams/ldes/public/
FIRST_PAGE: https://mandaten-besluiten.lblod.info/streams/ldes/public/1
TARGET_GRAPH: http://mu.semte.ch/graphs/besluiten-consumed # must be the same as mandataris besluit staging graph
WORKING_GRAPH: http://mu.semte.ch/graphs/besluiten-consumed-tmp
DIRECT_DATABASE_CONNECTION: "http://virtuoso:8890/sparql"
RANDOMIZE_GRAPHS: true
BATCH_SIZE: 100
BYPASS_MU_AUTH: false
labels:
- "logging=true"
logging: *default-logging
##############################################################################
# VENDOR ENDPOINTS
##############################################################################
vendor-login:
image: lblod/vendor-login-service:1.1.0
restart: always
labels:
- "logging=true"
logging: *default-logging
sparql-authorization-wrapper:
image: lblod/sparql-authorization-wrapper-service:1.0.0
volumes:
- ./config/sparql-authorization-wrapper:/config
restart: always
labels:
- "logging=true"
logging: *default-logging
deliver-email:
image: redpencil/deliver-email-service:0.4.0
profiles:
- send-emails
environment:
MAILBOX_URI: "http://data.lblod.info/id/mailboxes/1"
SECURE_CONNECTION: "true"
EMAIL_PROTOCOL: "smtp"
EMAIL_ADDRESS: "[email protected]"
EMAIL_PASSWORD: "myemailpassword"
FROM_NAME: "Lokaal Mandatenbeheer"
WELL_KNOWN_SERVICE: "Outlook365"
NODE_ENV: "production"
EMAIL_CRON_PATTERN: "0 8 * * 1-5" # Every weekday at 8am
CRON_FREQUENCY,: "0 8 * * 1-5"
labels:
- "logging=true"
restart: always
volumes:
- ./data/mail:/share
logging: *default-logging
vendor-management-consumer:
image: lblod/delta-consumer:0.0.26
environment:
DCR_SERVICE_NAME: "vendor-management-consumer"
DCR_SYNC_BASE_URL: "https://dev.loket.lblod.info/"
DCR_SYNC_FILES_PATH: "/sync/vendor-management/files"
DCR_JOB_CREATOR_URI: "http://data.lblod.info/services/id/vendor-management-consumer"
DCR_SYNC_DATASET_SUBJECT: "http://data.lblod.info/datasets/delta-producer/dumps/VendorManagementCacheGraphDump"
DCR_INITIAL_SYNC_JOB_OPERATION: "http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/consumer/initialSync/vendor-management"
DCR_DELTA_SYNC_JOB_OPERATION: "http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/consumer/VendorManagementFileSyncing"
INGEST_GRAPH: "http://mu.semte.ch/graphs/automatic-submission"
DCR_DISABLE_INITIAL_SYNC: "true"
DCR_KEEP_DELTA_FILES: "true"
DCR_DELTA_FILE_FOLDER: "/consumer-files"
DCR_CRON_PATTERN_DELTA_SYNC: "0 20 * * *" # Every day at 8 pm
DCR_SYNC_LOGIN_ENDPOINT: "https://dev.loket.lblod.info/sync/vendor-management/login" # Add DCR_SECRET_KEY in docker-compose.override.yml
restart: always
logging: *default-logging