You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-11-19 00:22:57 +03:00
Merge pull request #440 from sdwolfz/fix/postgres-healthcheck
Listen only on the unix socket during init
This commit is contained in:
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
PGUSER="${PGUSER:-postgres}" \
|
PGUSER="${PGUSER:-postgres}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
-o "-c listen_addresses='localhost'" \
|
-o "-c listen_addresses=''" \
|
||||||
-w start
|
-w start
|
||||||
|
|
||||||
file_env 'POSTGRES_USER' 'postgres'
|
file_env 'POSTGRES_USER' 'postgres'
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
PGUSER="${PGUSER:-postgres}" \
|
PGUSER="${PGUSER:-postgres}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
-o "-c listen_addresses='localhost'" \
|
-o "-c listen_addresses=''" \
|
||||||
-w start
|
-w start
|
||||||
|
|
||||||
file_env 'POSTGRES_USER' 'postgres'
|
file_env 'POSTGRES_USER' 'postgres'
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
PGUSER="${PGUSER:-postgres}" \
|
PGUSER="${PGUSER:-postgres}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
-o "-c listen_addresses='localhost'" \
|
-o "-c listen_addresses=''" \
|
||||||
-w start
|
-w start
|
||||||
|
|
||||||
file_env 'POSTGRES_USER' 'postgres'
|
file_env 'POSTGRES_USER' 'postgres'
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
PGUSER="${PGUSER:-postgres}" \
|
PGUSER="${PGUSER:-postgres}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
-o "-c listen_addresses='localhost'" \
|
-o "-c listen_addresses=''" \
|
||||||
-w start
|
-w start
|
||||||
|
|
||||||
file_env 'POSTGRES_USER' 'postgres'
|
file_env 'POSTGRES_USER' 'postgres'
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
PGUSER="${PGUSER:-postgres}" \
|
PGUSER="${PGUSER:-postgres}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
-o "-c listen_addresses='localhost'" \
|
-o "-c listen_addresses=''" \
|
||||||
-w start
|
-w start
|
||||||
|
|
||||||
file_env 'POSTGRES_USER' 'postgres'
|
file_env 'POSTGRES_USER' 'postgres'
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
PGUSER="${PGUSER:-postgres}" \
|
PGUSER="${PGUSER:-postgres}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
-o "-c listen_addresses='localhost'" \
|
-o "-c listen_addresses=''" \
|
||||||
-w start
|
-w start
|
||||||
|
|
||||||
file_env 'POSTGRES_USER' 'postgres'
|
file_env 'POSTGRES_USER' 'postgres'
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
PGUSER="${PGUSER:-postgres}" \
|
PGUSER="${PGUSER:-postgres}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
-o "-c listen_addresses='localhost'" \
|
-o "-c listen_addresses=''" \
|
||||||
-w start
|
-w start
|
||||||
|
|
||||||
file_env 'POSTGRES_USER' 'postgres'
|
file_env 'POSTGRES_USER' 'postgres'
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
PGUSER="${PGUSER:-postgres}" \
|
PGUSER="${PGUSER:-postgres}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
-o "-c listen_addresses='localhost'" \
|
-o "-c listen_addresses=''" \
|
||||||
-w start
|
-w start
|
||||||
|
|
||||||
file_env 'POSTGRES_USER' 'postgres'
|
file_env 'POSTGRES_USER' 'postgres'
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
PGUSER="${PGUSER:-postgres}" \
|
PGUSER="${PGUSER:-postgres}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
-o "-c listen_addresses='localhost'" \
|
-o "-c listen_addresses=''" \
|
||||||
-w start
|
-w start
|
||||||
|
|
||||||
file_env 'POSTGRES_USER' 'postgres'
|
file_env 'POSTGRES_USER' 'postgres'
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
PGUSER="${PGUSER:-postgres}" \
|
PGUSER="${PGUSER:-postgres}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
-o "-c listen_addresses='localhost'" \
|
-o "-c listen_addresses=''" \
|
||||||
-w start
|
-w start
|
||||||
|
|
||||||
file_env 'POSTGRES_USER' 'postgres'
|
file_env 'POSTGRES_USER' 'postgres'
|
||||||
|
|||||||
Reference in New Issue
Block a user