updated
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user