Skip to content

Commit 6fa7d39

Browse files
author
Vijay Parashar
committed
Added binding to 0.0.0.0/0
1 parent dd88d2f commit 6fa7d39

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

9.6/docker-entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ if [ "$1" = 'postgres' ]; then
7676
authMethod=trust
7777
fi
7878

79-
{ echo; echo "host all all all $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
79+
{ echo; echo "host all all 0.0.0.0/0 $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
80+
81+
echo
82+
echo '**************host all all 0.0.0.0/0 $authMethod'
83+
echo
8084

8185
# internal start of server in order to allow set-up using psql-client
8286
# does not listen on external TCP/IP and waits until start finishes

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2+
#This is forked from offical repo for using on mac, as Dcoker for mac can only access a container if it binded to 0.0.0.0
3+
4+
15
# About this Repo
26

37
This is the Git repo of the Docker [official image](https://docs.docker.com/docker-hub/official_repos/) for [postgres](https://registry.hub.docker.com/_/postgres/). See [the Docker Hub page](https://registry.hub.docker.com/_/postgres/) for the full readme on how to use this Docker image and for information regarding contributing and issues.

0 commit comments

Comments
 (0)