Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
238 lines (224 loc) · 7.27 KB
/
Copy pathcompose.yaml
File metadata and controls
238 lines (224 loc) · 7.27 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
volumes:
ckan_storage:
pg_data:
solr_data:
jena_data:
services:
nginx:
image: nginx:1.30-alpine
env_file:
- .env
depends_on:
ckan:
condition: service_healthy
fuseki:
condition: service_healthy
ports:
- "0.0.0.0:${NGINX_PORT_HOST}:${NGINX_PORT}"
- "0.0.0.0:${NGINX_SSLPORT_HOST}:${NGINX_SSLPORT}"
volumes:
- ./config/nginx/default.conf.template:/etc/nginx/templates/default.conf.template
- ./ckan-docker/nginx/setup/nginx.conf:/etc/nginx/nginx.conf
- ./ckan-docker/nginx/setup/ckan-local.crt:/etc/nginx/certs/ckan-local.crt
- ./ckan-docker/nginx/setup/ckan-local.key:/etc/nginx/certs/ckan-local.key
networks:
- datastack_net
healthcheck:
test: [CMD-SHELL, wget -qO /dev/null http://localhost || exit 1]
interval: 60s
timeout: 10s
retries: 5
restart: unless-stopped
ckan:
build:
context: ckan-docker/ckan/
dockerfile: ../../config/ckan/Dockerfile
args:
- TZ=${TZ}
environment:
- DEBUG=false
env_file:
- .env
depends_on:
db:
condition: service_healthy
solr:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- ckan_storage:/var/lib/ckan
- ./config/ckan/start_ckan.sh:/srv/app/start_ckan.sh
- ./config/ckan/02_backgroundjobs.sh:/docker-entrypoint.d/02_backgroundjobs.sh
- ./config/ckan/03_harvest.sh:/docker-entrypoint.d/03_harvest.sh
- ./config/ckan/04_supervisor.sh:/docker-entrypoint.d/04_supervisor.sh
- ./config/ckan/dcatde_themes.json:/srv/app/dcatde_themes.json
- ./config/ckan/supervisor-ckan-worker.conf:/etc/supervisor/conf.d/ckan-worker.conf
restart: unless-stopped
healthcheck:
test: [CMD, wget, -qO, /dev/null, "http://ckan:${CKAN_PORT}"]
interval: 60s
start_period: 2m
start_interval: 10s
networks:
- datastack_net
db:
build:
context: ckan-docker/postgresql/
env_file:
- .env
volumes:
- pg_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: [CMD, pg_isready, -U, "${POSTGRES_USER}", -d, "${POSTGRES_DB}"]
networks:
- datastack_net
solr:
# built from the official Solr with the CKAN schema, see config/solr/Dockerfile
build:
context: config/solr/
volumes:
- solr_data:/var/solr
restart: unless-stopped
healthcheck:
test: [CMD, wget, -qO, /dev/null, http://localhost:8983/solr/]
networks:
- datastack_net
redis:
image: "redis:${REDIS_VERSION}"
restart: unless-stopped
healthcheck:
test: [CMD, redis-cli, -e, QUIT]
networks:
- datastack_net
fuseki:
# built from the upstream Dockerfile on a current temurin base, see config/fuseki/Dockerfile
# (the published secoresearch/fuseki image is a stale build with old OS layers)
build:
context: config/fuseki/
environment:
- JDK_JAVA_OPTIONS=${FUSEKI_JAVA_OPTS}
- ADMIN_PASSWORD=${CKANINI__CKANEXT__FUSEKI__PASSWORD}
- ENABLE_DATA_WRITE=true
- ENABLE_UPDATE=true
- ENABLE_UPLOAD=true
- QUERY_TIMEOUT=60000
entrypoint: ["/fuseki-init/entrypoint.sh"]
# overriding entrypoint clears the image CMD, so it must be repeated (Fuseki 5.x default class)
command: ["java", "-cp", "*:/javalibs/*", "org.apache.jena.fuseki.main.cmds.FusekiServerCmd"]
volumes:
- jena_data:/fuseki-base
- ./config/fuseki/shiro.ini.tpl:/fuseki-init/shiro.ini.tpl:ro
- ./config/fuseki/entrypoint.sh:/fuseki-init/entrypoint.sh:ro
stop_grace_period: 10s
healthcheck:
test:
- CMD-SHELL
- wget -qO /dev/null http://localhost:3030/$$/ping || exit 1
interval: 10s
timeout: 5s
retries: 3
restart: unless-stopped
networks:
- datastack_net
csvtocsvw:
# pinned to release tags of the upstream repos; bump deliberately
image: ghcr.io/mat-o-lab/csvtocsvw:v1.3.6
environment:
APP_MODE: production
PORT: "${CSVTOCSVW_APP_PORT}"
SSL_VERIFY: "False"
restart: unless-stopped
entrypoint: [uvicorn, app:app, --host, 0.0.0.0, --port, "${CSVTOCSVW_APP_PORT}", --workers, "1", --proxy-headers]
healthcheck:
test: [CMD, curl, -f, "http://localhost:${CSVTOCSVW_APP_PORT}/info"]
interval: 60s
timeout: 10s
retries: 5
networks:
- datastack_net
maptomethod:
# releases: https://github.com/Mat-O-Lab/MapToMethod/releases
image: ghcr.io/mat-o-lab/maptomethod:v1.1.8
environment:
APP_NAME: MapToMethod
PORT: "${MAPTOMETHOD_APP_PORT}"
SSL_VERIFY: "${CKANINI__CKANEXT__CSVWMAPANDTRANSFORM__SSL_VERIFY}"
SERVER_URL: "${CKAN_SITE_URL}/maptomethod"
restart: unless-stopped
entrypoint: [uvicorn, app:app, --host, 0.0.0.0, --port, "${MAPTOMETHOD_APP_PORT}", --workers, "1", --proxy-headers, --root-path, /maptomethod]
healthcheck:
test: [CMD, curl, -f, "http://localhost:${MAPTOMETHOD_APP_PORT}/info"]
interval: 60s
timeout: 10s
retries: 5
networks:
- datastack_net
yarrrml-parser:
# yarrrml-parser, rmlmapper-webapi and rdfconverter are built from Mat-O-Lab/RDFConverter and
# released together: keep the three tags identical. https://github.com/Mat-O-Lab/RDFConverter/releases
image: ghcr.io/mat-o-lab/yarrrml-parser:v1.3.4
environment:
- "PORT=${PARSER_PORT}"
restart: unless-stopped
healthcheck:
test: [CMD-SHELL, "nc -z localhost ${PARSER_PORT}"]
interval: 30s
timeout: 5s
retries: 3
networks:
- datastack_net
rmlmapper:
# Note: changing PORT does not work due to an upstream limitation; port is effectively fixed at 4000.
image: ghcr.io/mat-o-lab/rmlmapper-webapi:v1.3.4
environment:
- "PORT=${MAPPER_PORT}"
restart: unless-stopped
healthcheck:
test: [CMD-SHELL, wget -qO /dev/null http://localhost:4000/ || exit 1]
interval: 30s
timeout: 5s
retries: 3
networks:
- datastack_net
rdfconverter:
image: ghcr.io/mat-o-lab/rdfconverter:v1.3.4
depends_on:
yarrrml-parser:
condition: service_healthy
rmlmapper:
condition: service_healthy
environment:
PARSER_PORT: "${PARSER_PORT}"
MAPPER_PORT: "${MAPPER_PORT}"
PORT: "${RDFCONVERTER_APP_PORT}"
YARRRML_URL: "http://yarrrml-parser:${PARSER_PORT}"
MAPPER_URL: "http://rmlmapper:${MAPPER_PORT}"
APP_NAME: RDFConverter
APP_MODE: production
SSL_VERIFY: "False"
restart: unless-stopped
entrypoint: [uvicorn, app:app, --host, 0.0.0.0, --port, "${RDFCONVERTER_APP_PORT}", --workers, "1", --proxy-headers]
healthcheck:
test: [CMD, curl, -f, "http://localhost:${RDFCONVERTER_APP_PORT}/info"]
interval: 60s
timeout: 10s
retries: 5
networks:
- datastack_net
sparklis:
# built from the pinned upstream files on a current nginx, see config/sparklis/Dockerfile
# (the upstream sferre/sparklis image is built on an unmaintained 2023 base)
build:
context: config/sparklis/
restart: unless-stopped
healthcheck:
test: [CMD-SHELL, wget -qO /dev/null http://localhost:8080/ || exit 1]
interval: 60s
timeout: 10s
retries: 5
networks:
- datastack_net
networks:
datastack_net: