postgres/Dockerfile
2017-09-22 12:16:27 +02:00

16 lines
394 B
Docker

FROM registry.gitlab.com/thallian/docker-confd-env:master
ENV PGDATA /var/lib/postgresql/data
RUN apk add --no-cache postgresql postgresql-contrib ca-certificates
RUN mkdir -p /run/postgresql && mkdir -p $PGDATA
RUN chown -R postgres /run/postgresql && chown -R postgres $PGDATA
RUN chmod 775 /run/postgresql
ADD /rootfs /
VOLUME /var/lib/postgresql/data /etc/ssl/postgresql/
EXPOSE 5432