View on GitHub

docker-devbox

[DEV] Docker stacks to quickly setup a dev environment and test some tools.

PostGIS

Container running PostgreSQL with the spatial extension PostGIS.

Usage with docker

export POSTGRES_USER=postgis
export POSTGRES_PASSWORD=ChangeIt
docker compose up -d
export PGHOST=localhost
export PGUSER=postgis
export PGPASSWORD=ChangeIt
createdb gis
psql -d gis -c "CREATE EXTENSION postgis"

Usage with Kubernetes

Read k8s-install.sh and run :

bash k8s-install.sh

Note that :

export POSTGRES_PASSWORD=$(kubectl get secret --namespace postgis gis-postgresql -o jsonpath="{.data.postgres-password}" | base64 -d)

See also

For Kubernetes :

To tune PostgreSQL :