Skip to content

Instantly share code, notes, and snippets.

@shevron
Created April 9, 2019 06:18
Show Gist options
  • Save shevron/32fa9f341bcdbe660b45a8260ebce0f0 to your computer and use it in GitHub Desktop.
Save shevron/32fa9f341bcdbe660b45a8260ebce0f0 to your computer and use it in GitHub Desktop.
Docker compose file defining external CKAN dependencies
# Docker compose for external services, assuming main ckan services are run
# outside of Docker
version: "3"
volumes:
pg_data:
services:
db:
container_name: db
image: ckan-pgsql
build:
context: ../../
dockerfile: contrib/docker/postgresql/Dockerfile
args:
- DS_RO_PASS=${DATASTORE_READONLY_PASSWORD}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
environment:
- DS_RO_PASS=${DATASTORE_READONLY_PASSWORD}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- pg_data:/var/lib/postgresql/data
ports:
- "5432:5432"
solr:
container_name: solr
image: ckan-solr
build:
context: ../../
dockerfile: contrib/docker/solr/Dockerfile
ports:
- "8983:8983"
redis:
container_name: redis
image: redis:latest
ports:
- "6379:6379"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment