updated
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled

This commit is contained in:
Yajbir Singh
2025-12-11 16:38:53 +05:30
parent 3e5bb28c6b
commit db4b0e3625

View File

@@ -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() {