#!/bin/sh set -eu install -d -o postgres -g postgres -m 0700 /run/pg-tls install -o postgres -g postgres -m 0600 /run/tls/server.key /run/pg-tls/server.key install -o postgres -g postgres -m 0644 /run/tls/server.crt /run/pg-tls/server.crt exec docker-entrypoint.sh postgres -c ssl=on -c ssl_cert_file=/run/pg-tls/server.crt \ -c ssl_key_file=/run/pg-tls/server.key -c hba_file=/run/config/pg_hba.conf