Files
mtusi2026lab7/infra/postgres/entrypoint.sh
T

9 lines
409 B
Bash

#!/bin/sh
set -eu
install -o postgres -g postgres -m 600 /run/identity/tls.key /tmp/pg.key
exec docker-entrypoint.sh postgres \
-c ssl=on -c ssl_min_protocol_version=TLSv1.2 \
-c ssl_cert_file=/run/identity/tls.crt -c ssl_key_file=/tmp/pg.key \
-c hba_file=/etc/lab/pg_hba.conf -c ident_file=/etc/lab/pg_ident.conf \
-c password_encryption=scram-sha-256 -c max_connections=100 -c shared_buffers=128MB