postgres/Dockerfile

18 lines
454 B
Docker

FROM registry.gitlab.com/thallian/docker-confd-env:lego
ENV PGDATA /var/lib/postgresql/data
ENV CERT_HOME /var/lib/postgresql
ENV CERT_USER postgres
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 /var/lib/postgresql/.lego
EXPOSE 5432