From 8cec429b0ede7ec8d4400f518278bf6269cbdf0f Mon Sep 17 00:00:00 2001 From: Pavel Grochal Date: Tue, 5 Mar 2019 13:18:31 +0100 Subject: [PATCH] Update Postgis information into README --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 33939b2..52ded12 100644 --- a/README.md +++ b/README.md @@ -279,3 +279,22 @@ or root. If you wish to disable the `docker pull` calls that the plugin triggers, you may set the `POSTGRES_DISABLE_PULL` environment variable to `true`. Once disabled, you will need to pull the service image you wish to deploy as shown in the `stderr` output. Please ensure the proper images are in place when `docker pull` is disabled. + +## Postgis + +Official Postgres docker images doesn't include postgis extension. To be able to use postgis, you will need postgres+postgis docker container compatible with official ones. + +You can use for example `mdillon/postgis` container: + +``` +export POSTGRES_IMAGE="mdillon/postgis" +export POSTGRES_IMAGE_VERSION="latest" + +dokku postgres:create postgis-database + +dokku postgres:connect postgis-database + +CREATE EXTENSION postgis; +``` + +Reference issue: https://github.com/dokku/dokku-postgres/issues/52