remove tls

This commit is contained in:
Sebastian Hugentobler 2017-10-01 14:48:46 +02:00
parent 11353bdd8e
commit 4f86519e76
6 changed files with 3 additions and 14 deletions

View File

@ -2,7 +2,7 @@ FROM registry.gitlab.com/thallian/docker-confd-env:master
ENV PGDATA /var/lib/postgresql/data
RUN apk add --no-cache postgresql postgresql-contrib ca-certificates
RUN apk add --no-cache postgresql postgresql-contrib
RUN mkdir -p /run/postgresql && mkdir -p $PGDATA
RUN chown -R postgres /run/postgresql && chown -R postgres $PGDATA

View File

@ -2,15 +2,11 @@
# Volumes
- `/var/lib/postgresql/data`
- `/etc/ssl/postgresql/`: certificates directory
# Environment Variables
## POSTGRES_PASSWORD
Password for the postgre admin user.
## CERT_DOMAIN
Name of the certificate domain.
# Ports
- 5432

View File

@ -1,3 +0,0 @@
#!/usr/bin/with-contenv sh
kill -s TERM $(head -1 ${PGDATA}/postmaster.pid)

View File

@ -1,3 +1,3 @@
local all all trust
hostssl all all 0.0.0.0/0 md5
host all all 0.0.0.0/0 md5
host all all ::1/128 trust

View File

@ -2,7 +2,4 @@
exec s6-setuidgid postgres postgres \
-D $PGDATA \
-c listen_addresses='*' \
-c ssl=on \
-c ssl_cert_file="/etc/ssl/postgresql/${CERT_DOMAIN}.crt" \
-c ssl_key_file="/etc/ssl/postgresql/${CERT_DOMAIN}.key"
-c listen_addresses='*'

View File

@ -1 +0,0 @@
/etc/ssl/postgresql IN_ATTRIB /bin/restart-services