2019-09-24 17:04:19 +00:00
|
|
|
FROM sutty/daemonize:latest AS build
|
2019-09-10 23:10:18 +00:00
|
|
|
MAINTAINER "f <f@sutty.nl>"
|
2019-09-24 17:04:19 +00:00
|
|
|
|
|
|
|
RUN echo /home/builder/packages/home > /etc/apk/repositories
|
|
|
|
RUN apk add --no-cache daemonize
|
|
|
|
|
|
|
|
FROM sutty/monit:latest
|
|
|
|
|
|
|
|
ENV PGDATA /var/lib/postgresql/11/data
|
|
|
|
ENV LANG en_US.utf8
|
|
|
|
ENV PGUSER sutty
|
|
|
|
ENV PGDB sutty
|
|
|
|
ENV PGVER 11
|
|
|
|
|
|
|
|
RUN apk add --no-cache postgresql postgresql-contrib
|
|
|
|
|
|
|
|
COPY --from=build /usr/sbin/daemonize /usr/sbin/daemonize
|
|
|
|
COPY ./postgresql.sh /usr/local/bin/postgresql
|
|
|
|
COPY ./monit.conf /etc/monit.d/postgresql.conf
|
|
|
|
|
|
|
|
RUN chmod 750 /usr/local/bin/postgresql
|
|
|
|
|
|
|
|
EXPOSE 5432
|
|
|
|
VOLUME $PGDATA
|