Skip to content

Files

Latest commit

c987f57 · Nov 4, 2018

History

History
This branch is 1 commit ahead of, 103 commits behind mapcentia/dockerfiles:master.

postgis

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 29, 2017
Nov 11, 2017
Jan 28, 2016
Nov 4, 2018

PostGIS for use with GC2

This image is for decoupled setup of GC2. Chech out our GC2core image. When a container is started, the GC2 template and user databases are created.

PostGreSQL 9.4 and PostGIS 2.1

How to use this image

Run a container. The GC2_PASSWORD is the password you want to assign to the PostGreSQL user "gc2", which has access from all hosts.

Leave -e TIMEZONE="..." to default to UTC and -e LOCALE= to default to en_US.UTF-8.

sudo docker run \
    --name postgis \
    --restart=always \
    -p 5432:5432 \
    -e GC2_PASSWORD=xxxxxx \
    -e LOCALE=da_DK.UTF-8 \
    -e TIMEZONE="Europe/Copenhagen" \
    -t -d mapcentia/postgis

Optional

Accsess a database with psql.

sudo docker run \
    --rm \
    --volumes-from=postgis \
    --link postgis:postgis \
    -t -i \
    mapcentia/postgis psql template_geocloud -U gc2 -h postgis

MapCentia

www.mapcentia.com/en/geocloud