Using this with PostGIS / extensions #101
spwoodcock
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Following on from #45, which has some outdated info now.
Upgrading Postgres with PostGIS Extension
The shutdown issues described I think are fixed now, but the original postgres container must obviously be shut down prior to running the upgrade.
The dependencies for the extension you require must be installed in an extended Dockerfile:
If you are using a database user other than
postgres
, this must be specified in two environment variables:failed: FATAL: role "postgres" does not exist
.connection to server on socket "/var/lib/postgresql/.s.PGSQL.50432" failed: FATAL: role "xxx" does not exist
The
pg_hba.conf
is replaced with a new one, so bear this in mind you probably need to replace with the original.Example
contrib/pg-upgrade/docker-compose.yml
docker-compose.yml
contrib/pg-upgrade/upgrade-db.sh:
With this setup we can fully automate a postgres/postgis upgrade.
Hope this helps someone!
Beta Was this translation helpful? Give feedback.
All reactions