Update docker-compose.yml

This commit is contained in:
Brett 2021-10-29 13:59:38 +02:00
parent dc347958c3
commit 00d69a40fc
1 changed files with 30 additions and 18 deletions

View File

@ -1,5 +1,10 @@
version: "3" version: "3"
volumes:
pg_data:
solr_data:
ckan_storage:
services: services:
nginx: nginx:
@ -31,16 +36,11 @@ services:
volumes: volumes:
- ckan_storage:/var/lib/ckan - ckan_storage:/var/lib/ckan
datapusher:
container_name: datapusher
image: kowhai/datapusher:0.0.17
ports:
- "8800:8800"
db: db:
container_name: db container_name: db
build: build:
context: postgresql/ context: .
dockerfile: postgresql/Dockerfile
args: args:
- DATASTORE_READONLY_PASSWORD=${DATASTORE_READONLY_PASSWORD} - DATASTORE_READONLY_PASSWORD=${DATASTORE_READONLY_PASSWORD}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
@ -50,19 +50,31 @@ services:
- PGDATA=/var/lib/postgresql/data/db - PGDATA=/var/lib/postgresql/data/db
volumes: volumes:
- pg_data:/var/lib/postgresql/data - pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "ckan"]
datapusher:
container_name: datapusher
build:
context: datapusher
ports:
- "8800:8800"
environment:
- DATAPUSHER_REWRITE_RESOURCES=${DATAPUSHER_REWRITE_RESOURCES}
- DATAPUSHER_REWRITE_URL=${DATAPUSHER_REWRITE_URL}
- CKAN__DATAPUSHER__CALLBACK_URL_BASE=${CKAN__DATAPUSHER__CALLBACK_URL_BASE}
solr: solr:
container_name: solr container_name: solr
build: build:
context: solr/ context: .
dockerfile: solr/Dockerfile
args:
- SOLR_VERSION=${SOLR_VERSION}
- CKAN_VERSION=${CKAN_VERSION}
volumes: volumes:
- solr_data:/opt/solr/server/solr/ckan/data/index - solr_data:/opt/solr/server/solr/ckan/data
redis: redis:
container_name: redis container_name: redis
image: redis:alpine image: redis:${REDIS_VERSION}
volumes:
ckan_storage:
pg_data:
solr_data: