kopia lustrzana https://github.com/kartoza/docker-postgis
9.3 2.1 (#43)
* Merge some tweaks from develop - fix container name reference in build and run script. * Fixed incorrect reference to pg 9.49.3-2.1
rodzic
784d9ac0d5
commit
5aad659c0c
|
@ -38,4 +38,4 @@ RUN /setup.sh
|
|||
ADD start-postgis.sh /start-postgis.sh
|
||||
RUN chmod 0755 /start-postgis.sh
|
||||
|
||||
CMD /start-postgis.sh
|
||||
CMD /start-postgis.sh
|
|
@ -80,7 +80,7 @@ eval $CMD
|
|||
|
||||
docker ps | grep ${CONTAINER_NAME}
|
||||
|
||||
IPADDRESS=`docker inspect postgis | grep IPAddress | grep -o '[0-9\.]*'`
|
||||
IPADDRESS=`docker inspect ${CONTAINER_NAME} | grep IPAddress | grep -o '[0-9\.]*'`
|
||||
|
||||
echo "Connect using:"
|
||||
echo "psql -l -p 5432 -h $IPADDRESS -U $PGUSER"
|
||||
|
|
3
setup.sh
3
setup.sh
|
@ -1,4 +1,5 @@
|
|||
# Add any additional setup tasks here
|
||||
chmod 600 /etc/ssl/private/ssl-cert-snakeoil.key
|
||||
|
||||
# These tasks are run as root
|
||||
CONF="/etc/postgresql/9.3/main/postgresql.conf"
|
||||
|
@ -6,7 +7,7 @@ CONF="/etc/postgresql/9.3/main/postgresql.conf"
|
|||
# Restrict subnet to docker private network
|
||||
echo "host all all 172.17.0.0/16 md5" >> /etc/postgresql/9.3/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
|
||||
echo "host all all 192.168.0.0/16 md5" >> /etc/postgresql/9.3/main/pg_hba.conf
|
||||
|
||||
# Listen on all ip addresses
|
||||
echo "listen_addresses = '*'" >> /etc/postgresql/9.3/main/postgresql.conf
|
||||
|
|
Ładowanie…
Reference in New Issue