Skip to content

Commit 01cf838

Browse files
authored
Merge pull request docker-library#440 from sdwolfz/fix/postgres-healthcheck
Listen only on the unix socket during init
2 parents 5876d4b + 6fe8c15 commit 01cf838

10 files changed

+10
-10
lines changed

10/alpine/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
9595
# does not listen on external TCP/IP and waits until start finishes
9696
PGUSER="${PGUSER:-postgres}" \
9797
pg_ctl -D "$PGDATA" \
98-
-o "-c listen_addresses='localhost'" \
98+
-o "-c listen_addresses=''" \
9999
-w start
100100

101101
file_env 'POSTGRES_USER' 'postgres'

10/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
9595
# does not listen on external TCP/IP and waits until start finishes
9696
PGUSER="${PGUSER:-postgres}" \
9797
pg_ctl -D "$PGDATA" \
98-
-o "-c listen_addresses='localhost'" \
98+
-o "-c listen_addresses=''" \
9999
-w start
100100

101101
file_env 'POSTGRES_USER' 'postgres'

9.3/alpine/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
9595
# does not listen on external TCP/IP and waits until start finishes
9696
PGUSER="${PGUSER:-postgres}" \
9797
pg_ctl -D "$PGDATA" \
98-
-o "-c listen_addresses='localhost'" \
98+
-o "-c listen_addresses=''" \
9999
-w start
100100

101101
file_env 'POSTGRES_USER' 'postgres'

9.3/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
9595
# does not listen on external TCP/IP and waits until start finishes
9696
PGUSER="${PGUSER:-postgres}" \
9797
pg_ctl -D "$PGDATA" \
98-
-o "-c listen_addresses='localhost'" \
98+
-o "-c listen_addresses=''" \
9999
-w start
100100

101101
file_env 'POSTGRES_USER' 'postgres'

9.4/alpine/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
9595
# does not listen on external TCP/IP and waits until start finishes
9696
PGUSER="${PGUSER:-postgres}" \
9797
pg_ctl -D "$PGDATA" \
98-
-o "-c listen_addresses='localhost'" \
98+
-o "-c listen_addresses=''" \
9999
-w start
100100

101101
file_env 'POSTGRES_USER' 'postgres'

9.4/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
9595
# does not listen on external TCP/IP and waits until start finishes
9696
PGUSER="${PGUSER:-postgres}" \
9797
pg_ctl -D "$PGDATA" \
98-
-o "-c listen_addresses='localhost'" \
98+
-o "-c listen_addresses=''" \
9999
-w start
100100

101101
file_env 'POSTGRES_USER' 'postgres'

9.5/alpine/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
9595
# does not listen on external TCP/IP and waits until start finishes
9696
PGUSER="${PGUSER:-postgres}" \
9797
pg_ctl -D "$PGDATA" \
98-
-o "-c listen_addresses='localhost'" \
98+
-o "-c listen_addresses=''" \
9999
-w start
100100

101101
file_env 'POSTGRES_USER' 'postgres'

9.5/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
9595
# does not listen on external TCP/IP and waits until start finishes
9696
PGUSER="${PGUSER:-postgres}" \
9797
pg_ctl -D "$PGDATA" \
98-
-o "-c listen_addresses='localhost'" \
98+
-o "-c listen_addresses=''" \
9999
-w start
100100

101101
file_env 'POSTGRES_USER' 'postgres'

9.6/alpine/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
9595
# does not listen on external TCP/IP and waits until start finishes
9696
PGUSER="${PGUSER:-postgres}" \
9797
pg_ctl -D "$PGDATA" \
98-
-o "-c listen_addresses='localhost'" \
98+
-o "-c listen_addresses=''" \
9999
-w start
100100

101101
file_env 'POSTGRES_USER' 'postgres'

9.6/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
9595
# does not listen on external TCP/IP and waits until start finishes
9696
PGUSER="${PGUSER:-postgres}" \
9797
pg_ctl -D "$PGDATA" \
98-
-o "-c listen_addresses='localhost'" \
98+
-o "-c listen_addresses=''" \
9999
-w start
100100

101101
file_env 'POSTGRES_USER' 'postgres'

0 commit comments

Comments
 (0)