From 11e976612a1eb67d6470ffacd649f3959bfbd208 Mon Sep 17 00:00:00 2001 From: Daniel Mepham Date: Thu, 29 Nov 2018 18:50:41 -0500 Subject: [PATCH] allow docker-entrypoint postgres startup to listen on tcp as well as unix sockets --- 10/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/10/docker-entrypoint.sh b/10/docker-entrypoint.sh index 4b475f999f..324568e5c0 100755 --- a/10/docker-entrypoint.sh +++ b/10/docker-entrypoint.sh @@ -112,7 +112,7 @@ if [ "$1" = 'postgres' ]; then # does not listen on external TCP/IP and waits until start finishes PGUSER="${PGUSER:-$POSTGRES_USER}" \ pg_ctl -D "$PGDATA" \ - -o "-c listen_addresses=''" \ + -o "-c listen_addresses='0.0.0.0'" \ -w start file_env 'POSTGRES_DB' "$POSTGRES_USER"