daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM alpine:latest
  2.  
  3. ENV DEBIAN_FRONTEND=noninteractive
  4.  
  5. RUN apk update && \
  6.     apk add postgresql && \
  7.     mkdir /run/postgresql && \
  8.     chown -R postgres:postgres /run/postgresql
  9.  
  10. USER postgres
  11.  
  12. RUN pg_ctl init -D /var/lib/postgresql/data && \
  13.     echo "host all  all    0.0.0.0/0  md5" >> /var/lib/postgresql/data/pg_hba.conf && \
  14.     echo "local all postgres  peer" >> /var/lib/postgresql/data/pg_hba.conf && \
  15.     echo "listen_addresses='*'" >> /var/lib/postgresql/data/postgresql.conf && \
  16.     chmod 0700 /var/lib/postgresql/data
  17.  
  18. ENTRYPOINT ["pg_ctl", "start", "-D", "/var/lib/postgresql/data"]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top