docker-ckan/docker-compose.yml

79 lines
1.9 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
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_PORT_HOST}:${NGINX_PORT}"
- "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-03-22 16:36:55 +01:00
image: ghcr.io/mjanez/ckan-docker:ckan-2.9.8
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
ports:
2022-11-03 14:20:51 +01:00
- "0.0.0.0:${CKAN_PORT_HOST}:${CKAN_PORT}"
2022-07-12 16:04:31 +02:00
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
db:
container_name: ${POSTGRESQL_CONTAINER_NAME}
build:
context: postgresql/
args:
- DATASTORE_READONLY_PASSWORD=${DATASTORE_READONLY_PASSWORD}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
environment:
- DATASTORE_READONLY_PASSWORD=${DATASTORE_READONLY_PASSWORD}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- PGDATA=/var/lib/postgresql/data/db
volumes:
- pg_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD", "pg_isready", "-U", "ckan"]
2021-10-29 17:05:48 +02:00
2022-07-12 10:44:55 +02:00
solr:
container_name: ${SOLR_CONTAINER_NAME}
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}
2022-07-12 10:44:55 +02:00
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "-e", "QUIT"]