Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to optionally choose PostGIS enabled image #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Expand Up @@ -2,6 +2,10 @@
POSTGRES_PASSWORD=ckan
DATASTORE_READONLY_PASSWORD=datastore

# Choose DB base image: Postgis enabled or not
# DB_BASE_IMAGE=mdillon/postgis:latest
DB_BASE_IMAGE=postgres:9.6-alpine

# Basic
CKAN_SITE_ID=default
CKAN_SITE_URL=http://ckan:5000
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.dev.yml
Expand Up @@ -9,7 +9,7 @@ services:
- TZ=${TZ}
env_file:
- .env
links:
depends_on:
- db
- solr
- redis
Expand All @@ -34,6 +34,8 @@ services:
- .env
build:
context: postgresql/
args:
- BASE_IMAGE=${DB_BASE_IMAGE}
volumes:
- pg_data:/var/lib/postgresql/data

Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Expand Up @@ -11,7 +11,7 @@ services:
- TZ=${TZ}
env_file:
- .env
links:
depends_on:
- db
- solr
- redis
Expand All @@ -33,6 +33,7 @@ services:
build:
context: postgresql/
args:
- BASE_IMAGE=${DB_BASE_IMAGE}
- DATASTORE_READONLY_PASSWORD=${DATASTORE_READONLY_PASSWORD}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
environment:
Expand Down
3 changes: 2 additions & 1 deletion postgresql/Dockerfile
@@ -1,4 +1,5 @@
FROM postgres:9.6-alpine
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
MAINTAINER Open Knowledge International

# Allow connections; we don't map out any ports so only linked docker containers can connect
Expand Down