Skip to content

Commit

Permalink
Fixing issue with postgres docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Shaw committed Mar 1, 2020
1 parent fa18d5d commit f432232
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 3 additions & 4 deletions contrib/postgres/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM postgres

COPY snakeoil-cert.sh /docker-entrypoint-initdb.d/

RUN \
DEBIAN_FRONTEND=noninteractive make-ssl-cert generate-default-snakeoil --force-overwrite \
&& adduser postgres ssl-cert
&& adduser postgres ssl-cert \
&& ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /var/lib/postgresql/server.crt \
&& ln -s /etc/ssl/private/ssl-cert-snakeoil.key /var/lib/postgresql/server.key
2 changes: 1 addition & 1 deletion contrib/postgres/docker-config
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ NAME=postgres
IMAGE=postgres-x
PUBLISH=5432:5432
ENV="POSTGRES_PASSWORD=P4ssw0rd"
EXTRA="-c ssl=on"
EXTRA="-c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key"
2 changes: 0 additions & 2 deletions contrib/postgres/snakeoil-cert.sh

This file was deleted.

0 comments on commit f432232

Please sign in to comment.