forked from lblod/app-decide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
422 lines (416 loc) · 13.8 KB
/
Copy pathdocker-compose.yml
File metadata and controls
422 lines (416 loc) · 13.8 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
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
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
x-logging: &default-logging
driver: 'json-file'
options:
max-size: '10m'
max-file: '3'
services:
identifier:
image: semtech/mu-identifier:1.11.0
environment:
DEFAULT_MU_AUTH_ALLOWED_GROUPS_HEADER: '[{"variables":[],"name":"public"}]'
DEFAULT_ACCESS_CONTROL_ALLOW_ORIGIN_HEADER: '*'
SESSION_COOKIE_SECURE: 'true'
labels:
- 'logging=true'
restart: always
logging: *default-logging
dispatcher:
image: semtech/mu-dispatcher:2.1.1
volumes:
- ./config/dispatcher:/config
labels:
- 'logging=true'
restart: always
logging: *default-logging
database:
image: semtech/sparql-parser:0.0.15
environment:
LISP_DYNAMIC_SPACE_SIZE: 8192
volumes:
- ./config/authorization:/config
- ./data/authorization:/data
labels:
- 'logging=true'
restart: always
logging: *default-logging
virtuoso:
image: redpencil/virtuoso:1.4.0
environment:
SPARQL_UPDATE: 'true'
volumes:
- ./config/virtuoso/virtuoso.ini:/data/virtuoso.ini
- ./data/db:/data
labels:
- 'logging=true'
restart: always
logging: *default-logging
resource:
image: semtech/mu-cl-resources:1.27.2
environment:
CACHE_CLEAR_PATH: 'http://cache/.mu/clear-keys'
volumes:
- ./config/resources:/config
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
file:
image: semtech/mu-file-service:3.4.0
volumes:
- ./data/files:/share
labels:
- 'logging=true'
restart: always
logging: *default-logging
environment:
MU_APPLICATION_GRAPH: "http://mu.semte.ch/graphs/harvesting"
project-scripts:
image: semtech/simple-script-store:1.0.0
volumes:
- ./scripts/:/app/scripts/
restart: 'no'
migrations:
image: semtech/mu-migrations-service:0.9.0
environment:
MU_SPARQL_ENDPOINT: http://virtuoso:8890/sparql
volumes:
- ./config/migrations:/data/migrations
deltanotifier:
image: semtech/mu-delta-notifier:0.4.0
volumes:
- ./config/delta:/config
labels:
- 'logging=true'
restart: always
logging: *default-logging
frontend-yasgui:
image: lblod/frontend-decide-yasgui:0.0.4
environment:
# The following are environment-specific and should be set in the
# environment's appropriate override file.
EMBER_OAUTH_API_KEY: '<OAUTH_API_KEY>'
EMBER_OAUTH_API_REDIRECT_URL: '<OAUTH_API_REDIRECT_URL>'
EMBER_OAUTH_API_BASE_URL: '<OAUTH_API_BASE_URL>'
EMBER_OAUTH_API_LOGOUT_URL: '<OAUTH_API_LOGOUT_URL'
EMBER_OAUTH_API_SCOPE: '<OAUTH_API_SCOPE>'
labels:
- 'logging=true'
restart: always
logging: *default-logging
frontend-harvesting:
image: lblod/frontend-harvesting-self-service:feature-oparl-harvesting
environment:
EMBER_AUTHENTICATION_ENABLED: 'true'
EMBER_LOGIN_ROUTE: 'login'
EMBER_OPARL_HARVESTING_ENABLED: false
EMBER_PDF_HARVESTING_ENABLED: true
EMBER_NER_AND_NEL_ANNOTATIONS_ENABLED: true
EMBER_CODELIST_MAPPING_ENABLED: true
labels:
- 'logging=true'
restart: always
logging: *default-logging
login:
image: semtech/mu-login-service:3.0.0
links:
- database:database
environment:
USERS_GRAPH: 'http://mu.semte.ch/graphs/users'
SESSIONS_GRAPH: 'http://mu.semte.ch/graphs/sessions'
restart: always
logging: *default-logging
labels:
- 'logging=true'
job-controller:
image: lblod/job-controller-service:1.3.0-beta-parallel-tasks
volumes:
- ./config/job-controller:/config
environment:
MU_APPLICATION_GRAPH: 'http://mu.semte.ch/graphs/harvesting'
labels:
- 'logging=true'
restart: always
logging: *default-logging
scheduled-job-controller:
image: lblod/scheduled-job-controller-service:1.2.1
environment:
LOG_SPARQL_ALL: 'false'
DEBUG_AUTH_HEADERS: 'false'
MAX_CONCURRENT_JOBS: 3
MU_APPLICATION_GRAPH: 'http://mu.semte.ch/graphs/harvesting'
labels:
- 'logging=true'
restart: always
logging: *default-logging
annotation-job-splitter:
image: lblod/annotation-job-splitter-service:0.0.1
restart: always
logging: *default-logging
labels:
- 'logging=true'
oslo-eli-transformer:
image: lblod/decide-harvester-transformation-service:1.0.0
environment:
INPUT_GRAPH: http://mu.semte.ch/graphs/public
OUTPUT_GRAPH: http://mu.semte.ch/graphs/public/gent
ORGANIZATIONS_GRAPH: http://mu.semte.ch/graphs/bestuurseenheden-bestuursorganen
BYPASS_MU_SPARQL_ENDPOINT: true
BATCH_SIZE: 1000
SLEEP_BETWEEN_BATCHES: 5
OPERATION_URI: http://lblod.data.gift/id/jobs/concept/TaskOperation/oslo-eli/transform
labels:
- logging=true
restart: always
logging: *default-logging
##################################
### elastic and embeddings
##################################
search:
image: semtech/mu-search:feature-large-dense-vector
environment:
INCLUDE_SCORE: true
volumes:
- ./config/search:/config
elasticsearch:
image: semtech/mu-search-elastic-backend:feature-bump-es-9.2.0
volumes:
- ./data/elasticsearch/:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
embedding:
image: semanticai/embedding-service:0.0.3
labels:
- logging=true
environment:
TZ: Europe/Brussels
OLLAMA_HOST: 'http://ollama:11434'
LOG_SPARQL_ALL: 'false'
volumes:
- ./config/embedding/config.py:/app/config.py
##############################################################################
# AI PIPELINES
##############################################################################
entity-linking:
image: semanticai/entity-linking-backend:0.0.1
environment:
TARGET_GRAPH: 'http://mu.semte.ch/graphs/public'
DEFAULT_GRAPH: 'http://mu.semte.ch/graphs/harvesting'
ALLOW_MU_AUTH_SUDO: 'true'
OLLAMA_HOST: 'http://ollama:11434'
NOMINATIM_ENDPOINT: 'http://nominatim:8080/'
MCP_SERVER_URL: 'http://localhost:80/mcp/sse'
ENABLED_TOOLS: 'search_sparql_docs,execute_sparql_query,search_location'
LLM_PROVIDER: 'mistral'
LLM_MAX_RETRIES: 3
MISTRAL_MODEL: 'ministral-14b-2512'
links:
- database:database
volumes:
- ./config/nel/config:/config
- ./data/nel:/app/data
restart: always
pdf-scraper:
image: semanticai/decide-pdf-scraper:0.0.3
environment:
TARGET_GRAPH: http://mu.semte.ch/graphs/harvesting
JOB_GRAPH: http://mu.semte.ch/graphs/harvesting
DATA_CONTAINER_GRAPH: http://mu.semte.ch/graphs/harvesting
HARVEST_COLLECTIONS_GRAPH: http://mu.semte.ch/graphs/harvesting
REMOTE_OBJECT_GRAPH: http://mu.semte.ch/graphs/harvesting
FILES_GRAPH: http://mu.semte.ch/graphs/harvesting
OPARL_TEMP_GRAPH: http://mu.semte.ch/graphs/harvesting
OSLO_TEMP_GRAPH: http://mu.semte.ch/graphs/harvesting
PUBLICATION_GRAPH: http://mu.semte.ch/graphs/public/pdf
EXPRESSIONS_GRAPH: http://mu.semte.ch/graphs/public/pdf
WORKS_GRAPH: http://mu.semte.ch/graphs/public/pdf
MANIFESTATIONS_GRAPH: http://mu.semte.ch/graphs/public/pdf
AI_GRAPH: http://mu.semte.ch/graphs/public/pdf
ALLOW_MU_AUTH_SUDO: true
labels:
- logging=true
restart: always
logging: *default-logging
pdf-content:
image: semanticai/decide-pdf-content-extraction:0.0.7
environment:
APACHE_TIKA_URL: 'http://apache-tika:9998/tika'
TARGET_GRAPH: http://mu.semte.ch/graphs/harvesting
JOB_GRAPH: http://mu.semte.ch/graphs/harvesting
DATA_CONTAINER_GRAPH: http://mu.semte.ch/graphs/harvesting
HARVEST_COLLECTIONS_GRAPH: http://mu.semte.ch/graphs/harvesting
REMOTE_OBJECT_GRAPH: http://mu.semte.ch/graphs/harvesting
FILES_GRAPH: http://mu.semte.ch/graphs/harvesting
OPARL_TEMP_GRAPH: http://mu.semte.ch/graphs/harvesting
OSLO_TEMP_GRAPH: http://mu.semte.ch/graphs/harvesting
PUBLICATION_GRAPH: http://mu.semte.ch/graphs/public/pdf
EXPRESSIONS_GRAPH: http://mu.semte.ch/graphs/public/pdf
WORKS_GRAPH: http://mu.semte.ch/graphs/public/pdf
MANIFESTATIONS_GRAPH: http://mu.semte.ch/graphs/public/pdf
AI_GRAPH: http://mu.semte.ch/graphs/public/pdf
ALLOW_MU_AUTH_SUDO: true
MOUNTED_SHARE_FOLDER: '/mnt/share'
volumes:
- ./data/files:/mnt/share
- ./config/pdf-content/config.json:/app/config.json:ro # Mount config as read-only
labels:
- logging=true
restart: always
logging: *default-logging
apache-tika:
image: lblod/apache-tika-service:0.0.3
restart: always
logging: *default-logging
nominatim:
image: mediagis/nominatim:5.1
environment:
- PBF_URL=https://download.geofabrik.de/europe/belgium-latest.osm.pbf
restart: always
volumes:
- ./data/nominatim:/var/lib/postgresql/16/main
named-entity-recognition:
image: semanticai/decide-geocoding-service:0.0.2
environment:
TARGET_GRAPH: http://mu.semte.ch/graphs/harvesting
JOB_GRAPH: http://mu.semte.ch/graphs/harvesting
DATA_CONTAINER_GRAPH: http://mu.semte.ch/graphs/harvesting
HARVEST_COLLECTIONS_GRAPH: http://mu.semte.ch/graphs/harvesting
REMOTE_OBJECT_GRAPH: http://mu.semte.ch/graphs/harvesting
FILES_GRAPH: http://mu.semte.ch/graphs/harvesting
OPARL_TEMP_GRAPH: http://mu.semte.ch/graphs/harvesting
OSLO_TEMP_GRAPH: http://mu.semte.ch/graphs/harvesting
PUBLICATION_GRAPH: http://mu.semte.ch/graphs/public/pdf
EXPRESSIONS_GRAPH: http://mu.semte.ch/graphs/public/pdf
WORKS_GRAPH: http://mu.semte.ch/graphs/public/pdf
MANIFESTATIONS_GRAPH: http://mu.semte.ch/graphs/public/pdf
AI_GRAPH: http://mu.semte.ch/graphs/public/pdf
ALLOW_MU_AUTH_SUDO: true
CONFIG_PATH: /app/config.json
volumes:
- ./config/ner/config.json:/app/config.json:ro # Mount config as read-only
depends_on:
- virtuoso
labels:
- logging=true
restart: always
logging: *default-logging
harvest_singleton-job:
image: lblod/harvesting-singleton-job-service:1.0.0
labels:
- "logging=true"
restart: always
logging: *default-logging
harvest_scraper:
image: lblod/scraper:1.5.0
volumes:
- ./data/files:/share
environment:
DEFAULT_GRAPH: "http://mu.semte.ch/graphs/harvesting"
INCREMENTAL_RETRIEVAL: "true"
STORE_ALL_PAGES: "false"
labels:
- "logging=true"
restart: always
logging: *default-logging
# harvest_compression:
# image: lblod/job-compression-service:0.2.4
# volumes:
# - ./data/files:/share
# environment:
# DEFAULT_GRAPH: "http://mu.semte.ch/graphs/harvesting"
# HIGH_LOAD_DATABASE_ENDPOINT: "http://virtuoso:8890/sparql"
# labels:
# - "logging=true"
# restart: always
# logging: *default-logging
harvest_extract:
image: lblod/harvesting-extract-to-ttl:0.15.0
environment:
VIRTUOSO_ENDPOINT: "http://virtuoso:8890/sparql"
SUDO_QUERY_RETRY: "true"
TARGET_GRAPH: "http://mu.semte.ch/graphs/harvesting"
NODE_OPTIONS: "--max-old-space-size=4096" # needed with the new rdfa parser
WRITE_DEBUG_TTLS: "false"
volumes:
- ./data/files:/share
labels:
- "logging=true"
restart: always
logging: *default-logging
harvest_cleanup:
image: lblod/local-harvesting-cleanup-previous-jobs-service
environment:
MAX_DAYS_TO_KEEP_SUCCESSFUL_JOBS: 30
MAX_DAYS_TO_KEEP_BUSY_JOBS: 7
MAX_DAYS_TO_KEEP_FAILED_JOBS: 7
LOG_SPARQL_ALL: "false"
DEBUG_AUTH_HEADERS: "false"
volumes:
- ./data/files:/share
restart: always
logging: *default-logging
harvest_validate:
image: lblod/harvesting-validator:0.4.0
environment:
# SLEEP_BETWEEN_JOB_MS: 100 --> replaced by a semaphore (max nbcpu conccurent tasks)
TARGET_GRAPH: "http://mu.semte.ch/graphs/harvesting"
STRICT_MODE_FILTERING: "false"
LIMIT_SIZE: 2000
volumes:
- ./data/files:/share
- ./config/shacl:/config
labels:
- "logging=true"
restart: always
logging: *default-logging
harvest_diff:
image: lblod/harvesting-diff-service:0.3.0
environment:
# SLEEP_BETWEEN_JOB_MS: 100 --> replaced by a semaphore (max nbcpu conccurent tasks)
TARGET_GRAPH: "http://mu.semte.ch/graphs/harvesting"
PUBLICATION_GRAPH: "http://mu.semte.ch/graphs/public"
LIMIT_SIZE: 2000
volumes:
- ./data/files:/share
labels:
- "logging=true"
restart: always
logging: *default-logging
harvest_sameas:
image: lblod/import-with-sameas-service:4.9.0
environment:
RENAME_DOMAIN: "http://data.lblod.info/id/"
TARGET_GRAPH: "http://mu.semte.ch/graphs/public"
HIGH_LOAD_DATABASE_ENDPOINT: "http://virtuoso:8890/sparql"
ROLLBACK_ENABLED: "false"
TASK_TIMEOUT_HOURS: "20"
LOG_SPARQL_ALL: "false"
DEBUG_AUTH_HEADERS: "false"
volumes:
- ./config/same-as-service:/config
- ./data/files:/share
labels:
- "logging=true"
restart: always
logging: *default-logging
harvest_gen_delta:
image: lblod/harvesting-generation-delta-service:0.1.1
environment:
TARGET_DIRECTORY_DELTA_PATH: "/share/deltas/besluiten"
BUFFER_SIZE: "100"
PUBLISHER_URI: "http://data.lblod.info/services/delta-production-json-diff-file-manager-besluiten"
TARGET_PUBLISHER_GRAPH: "http://redpencil.data.gift/id/deltas/producer/lblod-harvester-besluiten-producer"
HIGH_LOAD_DATABASE_ENDPOINT: "http://virtuoso:8890/sparql"
volumes:
- ./data/files:/share
labels:
- "logging=true"
restart: always
logging: *default-logging