kopia lustrzana https://github.com/kartoza/docker-postgis
Updated README
rodzic
78c4a31e9c
commit
a2928ebd75
30
README.md
30
README.md
|
@ -2,6 +2,19 @@
|
||||||
|
|
||||||
A simple docker container that runs PostGIS
|
A simple docker container that runs PostGIS
|
||||||
|
|
||||||
|
There are a number of other docker postgis containers out there. This one
|
||||||
|
differentiates itself by:
|
||||||
|
|
||||||
|
* provides ssl support out of the box
|
||||||
|
* connections are restricted to the docker subnet
|
||||||
|
* template_postgis database template is created for you
|
||||||
|
* a database 'gis' is created for you so you can use this container 'out of the
|
||||||
|
box' when it runs with e.g. QGIS
|
||||||
|
|
||||||
|
We will work to add more security features to this container in the future with
|
||||||
|
the aim of making a PostGIS image that is ready to be used in a production
|
||||||
|
environment (though probably not for heavy load databases).
|
||||||
|
|
||||||
**Note:** We recommend using ``apt-cacher-ng`` to speed up package fetching -
|
**Note:** We recommend using ``apt-cacher-ng`` to speed up package fetching -
|
||||||
you should configure the host for it in the provided 71-apt-cacher-ng file.
|
you should configure the host for it in the provided 71-apt-cacher-ng file.
|
||||||
|
|
||||||
|
@ -10,7 +23,7 @@ you should configure the host for it in the provided 71-apt-cacher-ng file.
|
||||||
To build the image without apt-cacher do:
|
To build the image without apt-cacher do:
|
||||||
|
|
||||||
```
|
```
|
||||||
docker build -t kartoza/postgis git://github.com/timlinux/docker-postgis
|
docker build -t kartoza/postgis git://github.com/kartoza/docker-postgis
|
||||||
```
|
```
|
||||||
|
|
||||||
To build with apt-cache do you need to clone this repo locally first and
|
To build with apt-cache do you need to clone this repo locally first and
|
||||||
|
@ -33,7 +46,7 @@ docker build -t kartoza/postgis .
|
||||||
To create a running container do:
|
To create a running container do:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo docker run --name "postgis" -p 2222:22 -p 25432:5432 -d -t kartoza/postgis
|
sudo docker run --name "postgis" -p 25432:5432 -d -t kartoza/postgis
|
||||||
```
|
```
|
||||||
|
|
||||||
## Connect via psql
|
## Connect via psql
|
||||||
|
@ -74,18 +87,7 @@ for the docker process to read / write it.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Connect via ssh
|
|
||||||
|
|
||||||
To log into your container do:
|
|
||||||
|
|
||||||
```
|
|
||||||
ssh root@localhost -p 2222
|
|
||||||
```
|
|
||||||
|
|
||||||
Default ssh password is 'postgis'
|
|
||||||
|
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
Tim Sutton (tim@linfiniti.com)
|
Tim Sutton (tim@kartoza.com)
|
||||||
May 2014
|
May 2014
|
||||||
|
|
Ładowanie…
Reference in New Issue