2021-10-29 13:58:24 +02:00
|
|
|
FROM postgres:12-alpine
|
2021-10-29 13:55:58 +02:00
|
|
|
|
2021-10-29 13:58:24 +02:00
|
|
|
# Allow connections; we don't map out any ports so only linked docker containers can connect
|
|
|
|
RUN echo "host all all 0.0.0.0/0 md5" >> /var/lib/postgresql/data/pg_hba.conf
|
2021-10-29 13:56:23 +02:00
|
|
|
|
2021-10-29 13:58:24 +02:00
|
|
|
# Customize default user/pass/db
|
|
|
|
ENV POSTGRES_DB ckan
|
|
|
|
ENV POSTGRES_USER ckan
|
|
|
|
ARG POSTGRES_PASSWORD
|
|
|
|
ARG DATASTORE_READONLY_PASSWORD
|
2021-10-29 13:56:23 +02:00
|
|
|
|
2021-10-29 13:58:24 +02:00
|
|
|
# Include datastore setup scripts
|
|
|
|
COPY ./postgresql/docker-entrypoint-initdb.d /docker-entrypoint-initdb.d
|