From a965a728eba5b9b8f9421dc2e76456cc234e73db Mon Sep 17 00:00:00 2001 From: Bernhard Radermacher Date: Thu, 19 Feb 2026 14:15:02 +0100 Subject: [PATCH] fix server start --- docker-entrypoint-initdb.d/00-main.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker-entrypoint-initdb.d/00-main.sh b/docker-entrypoint-initdb.d/00-main.sh index cbf3e75..7a5c816 100755 --- a/docker-entrypoint-initdb.d/00-main.sh +++ b/docker-entrypoint-initdb.d/00-main.sh @@ -46,7 +46,12 @@ if [[ -z $UPSTREAM ]]; then echo "max_connections = ${MAX_CONNECTIONS}" >> /var/lib/postgresql/data/postgresql.conf fi - docker_temp_server_start + set -- postgres -c listen_addresses='*' -p "${PGPORT:-5432}" + NOTIFY_SOCKET= \ + PGUSER="${PGUSER:-$POSTGRES_USER}" \ + pg_ctl -D "$PGDATA" \ + -o "$(printf '%q ' "$@")" \ + -w start /usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr.conf primary register