From db4b0e36253f3d83d1ef482b3e7fe77f992bc34f Mon Sep 17 00:00:00 2001 From: Yajbir Singh Date: Thu, 11 Dec 2025 16:38:53 +0530 Subject: [PATCH] updated --- run-document-server.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/run-document-server.sh b/run-document-server.sh index 17665def3..8736e9c75 100644 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -129,6 +129,13 @@ waiting_for_redis() { create_postgresql_cluster() { echo "Creating PostgreSQL cluster..." sudo -u postgres /usr/lib/postgresql/${PG_VERSION:-16}/bin/initdb -D "${PGDATA}" + + # Configure pg_hba.conf to trust local connections + # This avoids password authentication issues between services running in the same container + echo "local all onlyoffice trust" > "${PGDATA}/pg_hba.conf" + echo "local all all peer" >> "${PGDATA}/pg_hba.conf" + echo "host all all 127.0.0.1/32 trust" >> "${PGDATA}/pg_hba.conf" + echo "host all all ::1/128 trust" >> "${PGDATA}/pg_hba.conf" } create_postgresql_db() {