kopia lustrzana https://github.com/kartoza/docker-postgis
allow connection when using docker compose (#65)
see https://github.com/docker/compose/issues/4336 and https://github.com/kartoza/docker-postgis/issues/40pull/73/head
rodzic
d2219e85e2
commit
1aa1b0de52
1
setup.sh
1
setup.sh
|
@ -6,6 +6,7 @@ CONF="/etc/postgresql/9.5/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.5/main/pg_hba.conf
|
echo "host all all 172.17.0.0/16 md5" >> /etc/postgresql/9.5/main/pg_hba.conf
|
||||||
|
echo "host all all 172.18.0.0/16 md5" >> /etc/postgresql/9.5/main/pg_hba.conf
|
||||||
# And allow access from DockerToolbox / Boottodocker on OSX
|
# And allow access from DockerToolbox / Boottodocker on OSX
|
||||||
echo "host all all 192.168.0.0/16 md5" >> /etc/postgresql/9.5/main/pg_hba.conf
|
echo "host all all 192.168.0.0/16 md5" >> /etc/postgresql/9.5/main/pg_hba.conf
|
||||||
# Listen on all ip addresses
|
# Listen on all ip addresses
|
||||||
|
|
Ładowanie…
Reference in New Issue