PostGIS
Container running PostgreSQL with the spatial extension PostGIS.
Usage with docker
- Start postgis :
export POSTGRES_USER=postgis
export POSTGRES_PASSWORD=ChangeIt
docker compose up -d
- Configure psql (
~/.profile) :
export PGHOST=localhost
export PGUSER=postgis
export PGPASSWORD=ChangeIt
- Create gis database
createdb gis
psql -d gis -c "CREATE EXTENSION postgis"
Usage with Kubernetes
See CloudNativePG which provides a sample PostGIS cluster.
See also
To tune PostgreSQL :