1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-28 10:42:06 +03:00

Listen on "local" interfaces during init

This commit is contained in:
Tianon Gravi
2016-03-18 13:30:56 -07:00
parent 057673edb7
commit 716f26cdd6
6 changed files with 12 additions and 12 deletions

View File

@ -45,9 +45,9 @@ if [ "$1" = 'postgres' ]; then
{ echo; echo "host all all 0.0.0.0/0 $authMethod"; } >> "$PGDATA/pg_hba.conf"
# internal start of server in order to allow set-up using psql-client
# does not listen on TCP/IP and waits until start finishes
# does not listen on external TCP/IP and waits until start finishes
gosu postgres pg_ctl -D "$PGDATA" \
-o "-c listen_addresses=''" \
-o "-c listen_addresses='localhost'" \
-w start
: ${POSTGRES_USER:=postgres}