containers-postgresql/Dockerfile

22 lines
452 B
Text
Raw Normal View History

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
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