kopia lustrzana https://github.com/kartoza/docker-postgis
Allow connections from 192.168 private network too
rodzic
e527770730
commit
e881f90eb8
2
setup.sh
2
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
|
||||
|
|
Ładowanie…
Reference in New Issue