2021-10-03 23:19:00 +00:00
|
|
|
ARG ALPINE_VERSION=3.13.6
|
|
|
|
ARG BASE_IMAGE=sutty/monit
|
|
|
|
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
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
|
2021-02-03 00:02:19 +00:00
|
|
|
ENV PGDATA $PGBASE/13/data
|
2019-09-24 17:04:19 +00:00
|
|
|
ENV LANG en_US.utf8
|
|
|
|
ENV PGUSER sutty
|
|
|
|
ENV PGDB sutty
|
2021-02-03 00:02:19 +00:00
|
|
|
ENV PGVER 13
|
2019-10-01 17:21:23 +00:00
|
|
|
ENV PGCLIENT sutty
|
2021-02-03 00:01:02 +00:00
|
|
|
ENV PAGER "less -niSFX"
|
2019-09-24 17:04:19 +00:00
|
|
|
|
2021-02-03 00:01:02 +00:00
|
|
|
RUN apk add --no-cache postgresql postgresql-contrib daemonize less
|
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
|