remove tls
This commit is contained in:
parent
11353bdd8e
commit
4f86519e76
@ -2,7 +2,7 @@ FROM registry.gitlab.com/thallian/docker-confd-env:master
|
|||||||
|
|
||||||
ENV PGDATA /var/lib/postgresql/data
|
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 mkdir -p /run/postgresql && mkdir -p $PGDATA
|
||||||
RUN chown -R postgres /run/postgresql && chown -R postgres $PGDATA
|
RUN chown -R postgres /run/postgresql && chown -R postgres $PGDATA
|
||||||
|
@ -2,15 +2,11 @@
|
|||||||
|
|
||||||
# Volumes
|
# Volumes
|
||||||
- `/var/lib/postgresql/data`
|
- `/var/lib/postgresql/data`
|
||||||
- `/etc/ssl/postgresql/`: certificates directory
|
|
||||||
|
|
||||||
# Environment Variables
|
# Environment Variables
|
||||||
## POSTGRES_PASSWORD
|
## POSTGRES_PASSWORD
|
||||||
|
|
||||||
Password for the postgre admin user.
|
Password for the postgre admin user.
|
||||||
|
|
||||||
## CERT_DOMAIN
|
|
||||||
Name of the certificate domain.
|
|
||||||
|
|
||||||
# Ports
|
# Ports
|
||||||
- 5432
|
- 5432
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv sh
|
|
||||||
|
|
||||||
kill -s TERM $(head -1 ${PGDATA}/postmaster.pid)
|
|
@ -1,3 +1,3 @@
|
|||||||
local all all trust
|
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
|
host all all ::1/128 trust
|
||||||
|
@ -2,7 +2,4 @@
|
|||||||
|
|
||||||
exec s6-setuidgid postgres postgres \
|
exec s6-setuidgid postgres postgres \
|
||||||
-D $PGDATA \
|
-D $PGDATA \
|
||||||
-c listen_addresses='*' \
|
-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"
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
/etc/ssl/postgresql IN_ATTRIB /bin/restart-services
|
|
Loading…
Reference in New Issue
Block a user