-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
214 lines (212 loc) · 6.6 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
volumes:
ckan_storage:
pg_data:
solr_data:
jena_data:
services:
nginx:
env_file:
- .env
image: nginx:stable-alpine
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
restart: on-failure
ckan:
build:
context: ckan-docker/ckan/
dockerfile: ../../config/ckan/Dockerfile
args:
- TZ=${TZ}
env_file:
- .env
depends_on:
db:
condition: service_healthy
solr:
condition: service_healthy
redis:
condition: service_healthy
# fuseki:
# condition: service_healthy
expose:
- "${CKAN_PORT}"
volumes:
- ckan_storage:/var/lib/ckan
- ./config/ckan/start_ckan.sh:/srv/app/start_ckan.sh
- ./config/ckan/02_envvars.sh:/docker-entrypoint.d/02_envvars.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
# only for development
- ./ckan_plugins:/srv/app/src_extensions
# config for the background supervisor jobs
- ./config/ckan/supervisor-ckan-worker.conf:/etc/supervisord.d/supervisor-ckan-worker.conf
- ./logs:/var/log/ckan/
# replace logos and banner
#- ./config/Logo_white.svg:/srv/app/src/ckanext-matolabtheme/ckanext/matolabtheme/public/static/Logo.svg
#- ./config/favicon.png:/srv/app/src/ckanext-matolabtheme/ckanext/matolabtheme/public/static/favicon.png
#- ./config/banner.png:/srv/app/src/ckanext-matolabtheme/ckanext/matolabtheme/public/static/banner.png
entrypoint: /srv/app/start_ckan.sh
restart: unless-stopped
healthcheck:
test: [ "CMD", "wget", "-qO", "/dev/null", "http://ckan:${CKAN_PORT}" ]
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:
image: ckan/ckan-solr:${SOLR_IMAGE_VERSION}
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:
image: stain/jena-fuseki:latest
restart: on-failure
expose:
- "3030"
environment:
- JVM_ARGS=-Xmx10g -DentityExpansionLimit=0 -Dhttp.proxyHost=docker-dev.iwm.fraunhofer.de -Dhttp.proxyPort=80
- ADMIN_PASSWORD=${CKANINI__CKANEXT__FUSEKI__PASSWORD}
volumes:
- jena_data:/fuseki
- ./config/fuseki/config.ttl:/fuseki/config.ttl
#- ./config/fuseki/jetty.xml:/fuseki/jetty.xml
#command: [ "/jena-fuseki/fuseki-server", "--jetty-config=/fuseki/jetty.xml" ]
stop_grace_period: 10s
healthcheck:
test:
- "CMD-SHELL"
- "wget -qO /dev/null http://localhost:3030/$$/ping"
- "test ! -f /system/tdb.lock"
interval: 10s
timeout: 5s
retries: 3
labels:
- "autoheal=true"
networks:
- datastack_net
csvtocsvw:
image: "ghcr.io/mat-o-lab/csvtocsvw:latest"
environment:
APP_MODE: "production"
PORT: ${CSVTOCSVW_APP_PORT}
SSL_VERIFY: False
#ADMIN_MAIL: ${ADMIN_MAIL}
expose:
- ${CSVTOCSVW_APP_PORT}
restart: always
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: 20
networks:
- datastack_net
maptomethod:
image: ghcr.io/mat-o-lab/maptomethod:latest
environment:
APP_NAME: "MapToMethod"
PORT: ${MAPTOMETHOD_APP_PORT}
SSL_VERIFY: ${CSVWMAPANDTRANSFORM_SSL_VERIFY}
SERVER_URL: ${CKAN_SITE_URL}/maptomethod
expose:
- ${MAPTOMETHOD_APP_PORT}
restart: always
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" ]
networks:
- datastack_net
yarrrml-parser:
environment:
- PORT=${PARSER_PORT}
image: ghcr.io/mat-o-lab/yarrrml-parser:v.1.0.2
expose:
- ${PARSER_PORT}
restart: always
networks:
- datastack_net
rmlmapper:
# changing port doesnt work - issue on rmlmapper side
environment:
- PORT=${MAPPER_PORT}
image: ghcr.io/mat-o-lab/rmlmapper-webapi:latest
expose:
- ${MAPPER_PORT}
restart: always
networks:
- datastack_net
rdfconverter:
environment:
PARSER_PORT: ${PARSER_PORT}
MAPPER_PORT: ${MAPPER_PORT}
CONVERTER_PORT: ${RDFCONVERTER_APP_PORT}
YARRRML_URL: http://yarrrml-parser:${PARSER_PORT}
MAPPER_URL: http://rmlmapper:${MAPPER_PORT}
APP_NAME: RDFConverter
APP_MODE: development
SSL_VERIFY: False
expose:
- ${RDFCONVERTER_APP_PORT}
image: ghcr.io/mat-o-lab/rdfconverter:latest
restart: always
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: 20
networks:
- datastack_net
sparklis:
expose:
- 8080
image: sferre/sparklis:latest
networks:
- datastack_net
restart: unless-stopped
autoheal:
image: willfarrell/autoheal:latest
tty: true
restart: unless-stopped
environment:
- AUTOHEAL_CONTAINER_LABEL=all
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
datastack_net: