2017-09-22 10:16:27 +00:00
|
|
|
FROM registry.gitlab.com/thallian/docker-confd-env:master
|
2017-09-04 14:00:44 +00:00
|
|
|
|
|
|
|
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 /
|
|
|
|
|
2017-09-22 10:16:27 +00:00
|
|
|
VOLUME /var/lib/postgresql/data /etc/ssl/postgresql/
|
2017-09-04 14:00:44 +00:00
|
|
|
|
|
|
|
EXPOSE 5432
|