kopia lustrzana https://github.com/kartoza/docker-postgis
Allow connections from 192.168 private network too
rodzic
540b2e00c2
commit
14ddb17f0b
2
setup.sh
2
setup.sh
|
@ -5,6 +5,8 @@ CONF="/etc/postgresql/9.4/main/postgresql.conf"
|
||||||
|
|
||||||
# Restrict subnet to docker private network
|
# Restrict subnet to docker private network
|
||||||
echo "host all all 172.17.0.0/16 md5" >> /etc/postgresql/9.4/main/pg_hba.conf
|
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
|
# Listen on all ip addresses
|
||||||
echo "listen_addresses = '*'" >> /etc/postgresql/9.4/main/postgresql.conf
|
echo "listen_addresses = '*'" >> /etc/postgresql/9.4/main/postgresql.conf
|
||||||
echo "port = 5432" >> /etc/postgresql/9.4/main/postgresql.conf
|
echo "port = 5432" >> /etc/postgresql/9.4/main/postgresql.conf
|
||||||
|
|
Ładowanie…
Reference in New Issue