-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
213 lines (211 loc) · 6.21 KB
/
compose.dev.yaml
File metadata and controls
213 lines (211 loc) · 6.21 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
volumes:
ckan_storage:
pg_data:
solr_data:
jena_data:
services:
nginx:
env_file:
- .env
image: nginx:stable-alpine
depends_on:
ckan:
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 -O /dev/null http://localhost || exit 1"]
interval: 60s
timeout: 10s
retries: 5
restart: unless-stopped
ckan:
image: ckan-dev
user: "0:0" # Run as root to allow entrypoint to fix permissions, then drop to 503:502
build:
context: ckan-docker/ckan/
dockerfile: ../../config/ckan/Dockerfile.dev
args:
- TZ=${TZ}
environment:
- DEBUG=true
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/entrypoint_wrapper.sh:/srv/app/entrypoint_wrapper.sh
- ./config/ckan/start_ckan.sh:/srv/app/start_ckan.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
- ./ckan_plugins:/srv/app/src_extensions
# config for the background supervisor jobs
- ./config/ckan/supervisor-ckan-worker.conf:/etc/supervisor/conf.d/ckan-worker.conf
#- ./logs:/srv/app/logs
restart: unless-stopped
entrypoint: /srv/app/entrypoint_wrapper.sh
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:
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:
build:
context: config/fuseki/
restart: on-failure
expose:
- "3030"
environment:
- JAVA_OPTIONS=-Xmx10g -Xms10g -DentityExpansionLimit=0
- ADMIN_PASSWORD=${CKANINI__CKANEXT__FUSEKI__PASSWORD}
- ENABLE_DATA_WRITE=true
- ENABLE_UPDATE=true
- ENABLE_UPLOAD=true
- QUERY_TIMEOUT=60000
volumes:
- jena_data:/fuseki-base
stop_grace_period: 10s
healthcheck:
test:
- "CMD-SHELL"
- "wget -qO /dev/null http://localhost:3030/$$/ping || exit 1"
interval: 10s
timeout: 5s
retries: 3
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: 5
networks:
- datastack_net
maptomethod:
image: ghcr.io/mat-o-lab/maptomethod:latest
environment:
APP_NAME: "MapToMethod"
PORT: ${MAPTOMETHOD_APP_PORT}
SSL_VERIFY: ${CKANINI__CKANEXT__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" ]
interval: 60s
timeout: 10s
retries: 5
networks:
- datastack_net
yarrrml-parser:
environment:
- PORT=${PARSER_PORT}
image: ghcr.io/mat-o-lab/yarrrml-parser:latest
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}
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: 5
networks:
- datastack_net
sparklis:
expose:
- 8080
image: sferre/sparklis:latest
networks:
- datastack_net
restart: unless-stopped
networks:
datastack_net: