Skip to content

Commit

Permalink
docker-compose.yml: add named data volumes for ckan_home, ckan_storag…
Browse files Browse the repository at this point in the history
…e and pg_data
  • Loading branch information
Florian Mayer authored and Florian Mayer committed Jul 11, 2017
1 parent bc54bc8 commit 34471a9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions contrib/docker/docker-compose.yml
Expand Up @@ -4,9 +4,13 @@
# started up quickly enough. Just do "docker-compose up ckan"
# again to retry
version: "3"

volumes:
ckan_config:
ckan_lib:
ckan_home:
ckan_storage:
pg_data:

services:
ckan:
container_name: ckan
Expand All @@ -31,7 +35,9 @@ services:
- REDIS_PORT_6379_TCP_PORT=6379
volumes:
- ckan_config:/etc/ckan/default
- ckan_lib:/var/lib/ckan
- ckan_home:/usr/lib/ckan/default
- ckan_storage:/var/lib/ckan

db:
container_name: db
build:
Expand All @@ -42,11 +48,15 @@ services:
- "127.0.0.1:${POSTGRES_PORT}:5432"
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- pg_data:/var/lib/postgresql/data

solr:
container_name: solr
image: ckan/solr:latest
ports:
- "8983:8983"
- "0.0.0.0:8983:8983"

redis:
container_name: redis
image: redis:latest
Expand Down

0 comments on commit 34471a9

Please sign in to comment.