docker-ckan/docker-compose.yml

110 lines
2.5 KiB
YAML
Raw Normal View History

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:
services:
2015-04-16 02:41:10 +02:00
nginx:
2022-07-12 10:44:55 +02:00
container_name: ${NGINX_CONTAINER_NAME}
build:
context: nginx/
dockerfile: Dockerfile
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
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}
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}
networks:
2023-06-10 08:11:18 +02:00
- ckannet
- dbnet
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/
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}
- 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}
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
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"]
networks:
2023-06-10 08:11:18 +02:00
webnet:
ckannet:
solrnet:
dbnet:
redisnet: