-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
192 lines (190 loc) · 5.89 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
version: '3.4'
x-logging:
&default-logging
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
services:
mandaten:
image: lblod/frontend-mandatendatabank:0.14.0
links:
- identifier:backend
restart: always
labels:
- "logging=true"
logging: *default-logging
identifier:
image: semtech/mu-identifier:1.9.0
environment:
DEFAULT_ACCESS_CONTROL_ALLOW_ORIGIN_HEADER: "*"
DEFAULT_MU_AUTH_ALLOWED_GROUPS_HEADER: "[{\"variables\":[],\"name\":\"public\"}]"
restart: always
labels:
- "logging=true"
logging: *default-logging
dispatcher:
image: semtech/mu-dispatcher:2.1.0-beta.2
volumes:
- ./config/dispatcher:/config
restart: always
labels:
- "logging=true"
logging: *default-logging
database:
image: cecemel/mu-authorization:0.6.0-beta.8
environment:
MU_SPARQL_ENDPOINT: "http://virtuoso:8890/sparql"
DATABASE_COMPATIBILITY: "Virtuoso"
DATABASE_OVERLOAD_RECOVERY: "true"
# Note: not sure wether it does something, it is meant for healing-process which may make
# heavy queries
QUERY_MAX_PROCESSING_TIME: 605000
QUERY_MAX_EXECUTION_TIME: 605000
volumes:
- ./config/authorization:/config
labels:
- "logging=true"
restart: always
logging: *default-logging
delta-notifier:
image: cecemel/delta-notifier:0.2.0-beta.2
volumes:
- ./config/delta:/config
- ./data/delta/queues:/queues
labels:
- "logging=true"
restart: always
logging: *default-logging
virtuoso:
image: tenforce/virtuoso:1.3.2-virtuoso7.2.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
restart: always
labels:
- "logging=true"
logging: *default-logging
migrations:
image: semtech/mu-migrations-service:0.6.0
environment:
MU_SPARQL_TIMEOUT: '300'
links:
- virtuoso:database
volumes:
- ./config/migrations:/data/migrations
restart: always
labels:
- "logging=true"
logging: *default-logging
cache:
image: semtech/mu-cache:2.0.1
links:
- resource:backend
restart: always
labels:
- "logging=true"
logging: *default-logging
resource:
image: semtech/mu-cl-resources:1.19.0
environment:
CACHE_CLEAR_PATH: "http://cache/.mu/clear-keys"
volumes:
- ./config/resources:/config
restart: always
labels:
- "logging=true"
logging: *default-logging
filehost:
image: nginx:1.15.2
volumes:
- ./data/exports:/data/exports
- ./config/filehost:/etc/nginx/conf.d
restart: always
labels:
- "logging=true"
logging: *default-logging
export:
image: lblod/mandaten-download-generator-service:0.3.6
environment:
MU_APPLICATION_GRAPH: "http://mu.semte.ch/graphs/public"
EXPORT_CRON_PATTERN: "0 0 6 * * *"
volumes:
- ./data/exports:/data/exports
- ./config/export:/config
links:
- virtuoso:database
restart: always
labels:
- "logging=true"
logging: *default-logging
sitemap:
image: lblod/sitemap-service:0.2.1
volumes:
- ./config/sitemap/:/config/
- ./data/sitemap/:/data/
environment:
SITEMAP_MAX_AGE: 5
links:
- virtuoso:database
restart: always
labels:
- "logging=true"
logging: *default-logging
file:
image: semtech/mu-file-service:3.1.1
volumes:
- ./data/files:/share
restart: always
labels:
- "logging=true"
logging: *default-logging
deliver-email-service:
image: redpencil/deliver-email-service:0.2.0
environment:
MAILBOX_URI: 'http://data.lblod.info/id/mailboxes/1'
labels:
- "logging=true"
restart: always
logging: *default-logging
################################################################################
# DELTAS
################################################################################
delta-producer-report-generator:
image: lblod/delta-producer-report-generator:0.3.0
environment:
OUTBOX: "http://data.lblod.info/id/mail-folders/2"
volumes:
- ./config/delta-producer-consumer/report-generator:/config
labels:
- "logging=true"
restart: always
logging: *default-logging
mandatendatabank-consumer:
image: lblod/delta-consumer:0.0.25-rc.4
environment:
DCR_SYNC_BASE_URL: 'https://loket.lblod.info' # replace with link to Loket API
DCR_SERVICE_NAME: 'mandatendatabank-consumer'
DCR_SYNC_FILES_PATH: '/sync/mandatarissen/files'
DCR_SYNC_DATASET_SUBJECT: "http://data.lblod.info/datasets/delta-producer/dumps/MandatarissenCacheGraphDump"
DCR_INITIAL_SYNC_JOB_OPERATION: "http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/consumer/initialSync/mandatarissen"
DCR_DELTA_SYNC_JOB_OPERATION: "http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/consumer/sync/mandatarissen"
DCR_JOB_CREATOR_URI: "http://data.lblod.info/services/id/mandatendatabank-consumer"
BYPASS_MU_AUTH_FOR_EXPENSIVE_QUERIES: 'true'
DCR_KEEP_DELTA_FILES: 'true'
DCR_DISABLE_INITIAL_SYNC: 'true'
INGEST_GRAPH: "http://mu.semte.ch/graphs/public"
SLEEP_BETWEEN_BATCHES: 100
DCR_BATCH_SIZE: 10000 # TODO: this is confusing bit in the API -> refers to the chunks of the read stream of the dumpfile of the intiial sync
BATCH_SIZE: 10000 # TODO: this is confusing bit in the API -> refers to the chunks of the ingestion in the database
restart: always
labels:
- "logging=true"
logging: *default-logging
################################################################################
# END DELTAS
################################################################################