Allow connections from 192.168 private network too

pull/49/head
Tim Sutton 2015-09-22 18:16:12 +07:00
rodzic e527770730
commit e881f90eb8
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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