From 14ddb17f0bfaff9b0decde1cc351f6675c967de6 Mon Sep 17 00:00:00 2001 From: Tim Sutton Date: Tue, 22 Sep 2015 18:16:12 +0700 Subject: [PATCH] Allow connections from 192.168 private network too --- setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.sh b/setup.sh index 1a50933..e46492c 100755 --- a/setup.sh +++ b/setup.sh @@ -5,6 +5,8 @@ CONF="/etc/postgresql/9.4/main/postgresql.conf" # Restrict subnet to docker private network echo "host all all 172.17.0.0/16 md5" >> /etc/postgresql/9.4/main/pg_hba.conf +# And allow access from DockerToolbox / Boottodocker on OSX +echo "host all all 192.168.0.0/16 md5" >> /etc/postgresql/9.4/main/pg_hba.conf # Listen on all ip addresses echo "listen_addresses = '*'" >> /etc/postgresql/9.4/main/postgresql.conf echo "port = 5432" >> /etc/postgresql/9.4/main/postgresql.conf