2019-09-24 17:04:19 +00:00
|
|
|
FROM sutty/monit:latest
|
2020-07-27 19:50:21 +00:00
|
|
|
MAINTAINER "f <f@sutty.nl>"
|
2019-09-24 17:04:19 +00:00
|
|
|
|
2019-09-24 17:29:43 +00:00
|
|
|
ENV PGBASE /var/lib/postgresql
|
2020-07-27 19:50:21 +00:00
|
|
|
ENV PGDATA $PGBASE/12/data
|
2019-09-24 17:04:19 +00:00
|
|
|
ENV LANG en_US.utf8
|
|
|
|
ENV PGUSER sutty
|
|
|
|
ENV PGDB sutty
|
2020-07-27 19:50:21 +00:00
|
|
|
ENV PGVER 12
|
2019-10-01 17:21:23 +00:00
|
|
|
ENV PGCLIENT sutty
|
2019-09-24 17:04:19 +00:00
|
|
|
|
2020-07-27 19:50:21 +00:00
|
|
|
RUN apk add --no-cache postgresql postgresql-contrib daemonize
|
2019-09-24 17:04:19 +00:00
|
|
|
|
|
|
|
COPY ./postgresql.sh /usr/local/bin/postgresql
|
|
|
|
COPY ./monit.conf /etc/monit.d/postgresql.conf
|
|
|
|
|
|
|
|
RUN chmod 750 /usr/local/bin/postgresql
|
|
|
|
|
|
|
|
EXPOSE 5432
|
2019-09-24 17:29:43 +00:00
|
|
|
VOLUME $PGBASE
|