2020-09-17 11:32:00 +02:00
|
|
|
version: "3"
|
2015-04-16 02:41:10 +02:00
|
|
|
|
2022-07-12 10:44:55 +02:00
|
|
|
volumes:
|
|
|
|
ckan_storage:
|
|
|
|
pg_data:
|
|
|
|
solr_data:
|
|
|
|
|
2020-09-17 11:32:00 +02:00
|
|
|
services:
|
2015-04-16 02:41:10 +02:00
|
|
|
|
2020-09-17 11:32:00 +02:00
|
|
|
nginx:
|
2022-07-12 10:44:55 +02:00
|
|
|
container_name: ${NGINX_CONTAINER_NAME}
|
2020-09-17 11:32:00 +02:00
|
|
|
build:
|
|
|
|
context: nginx/
|
|
|
|
dockerfile: Dockerfile
|
2023-05-31 14:26:56 +02:00
|
|
|
networks:
|
2023-06-10 08:11:18 +02:00
|
|
|
- webnet
|
|
|
|
- ckannet
|
2022-07-14 11:40:02 +02:00
|
|
|
depends_on:
|
|
|
|
ckan:
|
|
|
|
condition: service_healthy
|
2020-09-17 11:32:00 +02:00
|
|
|
ports:
|
2022-11-03 14:20:51 +01:00
|
|
|
- "0.0.0.0:${NGINX_SSLPORT_HOST}:${NGINX_SSLPORT}"
|
2021-10-29 17:05:48 +02:00
|
|
|
|
2022-07-12 16:04:31 +02:00
|
|
|
ckan:
|
|
|
|
container_name: ${CKAN_CONTAINER_NAME}
|
|
|
|
build:
|
|
|
|
context: ckan/
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
args:
|
|
|
|
- TZ=${TZ}
|
2023-05-31 14:26:56 +02:00
|
|
|
networks:
|
2023-06-10 08:11:18 +02:00
|
|
|
- ckannet
|
|
|
|
- dbnet
|
|
|
|
- solrnet
|
|
|
|
- redisnet
|
2022-07-13 12:47:48 +02:00
|
|
|
env_file:
|
|
|
|
- .env
|
2022-07-12 16:04:31 +02:00
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
solr:
|
|
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
|
|
- ckan_storage:/var/lib/ckan
|
|
|
|
restart: unless-stopped
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5000"]
|
2021-10-29 17:05:48 +02:00
|
|
|
|
2022-07-12 10:44:55 +02:00
|
|
|
datapusher:
|
|
|
|
container_name: ${DATAPUSHER_CONTAINER_NAME}
|
2023-05-31 14:26:56 +02:00
|
|
|
networks:
|
2023-06-10 08:11:18 +02:00
|
|
|
- ckannet
|
|
|
|
- dbnet
|
2022-11-30 11:58:33 +01:00
|
|
|
image: ckan/ckan-base-datapusher:${DATAPUSHER_VERSION}
|
2022-07-12 10:44:55 +02:00
|
|
|
restart: unless-stopped
|
2022-07-12 16:04:31 +02:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:8800"]
|
2015-04-16 02:41:10 +02:00
|
|
|
|
2022-07-12 10:44:55 +02:00
|
|
|
db:
|
|
|
|
container_name: ${POSTGRESQL_CONTAINER_NAME}
|
|
|
|
build:
|
|
|
|
context: postgresql/
|
2023-05-31 14:26:56 +02:00
|
|
|
networks:
|
2023-06-10 08:11:18 +02:00
|
|
|
- dbnet
|
2022-07-12 10:44:55 +02:00
|
|
|
environment:
|
2023-06-10 08:11:18 +02:00
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
2022-07-12 10:44:55 +02:00
|
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
2023-06-10 08:11:18 +02:00
|
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
|
|
- PGDATA=${PGDATA}
|
|
|
|
- CKAN_DB_USER=${CKAN_DB_USER}
|
2023-05-31 14:26:56 +02:00
|
|
|
- CKAN_DB_PASSWORD=${CKAN_DB_PASSWORD}
|
2023-06-10 08:11:18 +02:00
|
|
|
- CKAN_DB=${CKAN_DB}
|
|
|
|
- DATASTORE_READONLY_USER=${DATASTORE_READONLY_USER}
|
|
|
|
- DATASTORE_READONLY_PASSWORD=${DATASTORE_READONLY_PASSWORD}
|
|
|
|
- DATASTORE_DB=${DATASTORE_DB}
|
2022-07-12 10:44:55 +02:00
|
|
|
volumes:
|
|
|
|
- pg_data:/var/lib/postgresql/data
|
|
|
|
restart: unless-stopped
|
|
|
|
healthcheck:
|
2023-06-10 08:11:18 +02:00
|
|
|
test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER}", "-d", "${POSTGRES_DB}"]
|
2021-10-29 17:05:48 +02:00
|
|
|
|
2022-07-12 10:44:55 +02:00
|
|
|
solr:
|
|
|
|
container_name: ${SOLR_CONTAINER_NAME}
|
2023-05-31 14:26:56 +02:00
|
|
|
networks:
|
2023-06-10 08:11:18 +02:00
|
|
|
- solrnet
|
2022-07-12 10:44:55 +02:00
|
|
|
image: ckan/ckan-solr:${SOLR_IMAGE_VERSION}
|
2023-01-19 13:34:17 +01:00
|
|
|
volumes:
|
|
|
|
- solr_data:/var/solr
|
2022-07-12 10:44:55 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:8983/solr/"]
|
2015-04-16 02:41:10 +02:00
|
|
|
|
2020-09-17 11:32:00 +02:00
|
|
|
redis:
|
2022-07-12 10:44:55 +02:00
|
|
|
container_name: ${REDIS_CONTAINER_NAME}
|
2021-12-10 14:35:25 +01:00
|
|
|
image: redis:${REDIS_VERSION}
|
2023-06-10 08:11:18 +02:00
|
|
|
networks:
|
|
|
|
- redisnet
|
2022-07-12 10:44:55 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "redis-cli", "-e", "QUIT"]
|
2023-05-31 14:26:56 +02:00
|
|
|
|
|
|
|
networks:
|
2023-06-10 08:11:18 +02:00
|
|
|
webnet:
|
|
|
|
ckannet:
|
|
|
|
solrnet:
|
|
|
|
dbnet:
|
|
|
|
redisnet:
|