docs.verry.org/content/geek/docker/postgresql.md
2025-03-28 21:50:18 +01:00

536 B

+++ title = 'Postgresql' date = 2025-03-28T21:43:20+01:00 +++

Docker upgrade

First, create the new volume to new version

docker volume create postgres-XX

In docker-compose add in volume the section with the new volume. In service duplicate the postgres section, append version

start the new empty database, import new data like:

docker-compose exec --user postgres -i postgres16 pg_dumpall | docker-compose exec --user postgres -T postgres psql

Then remove old DB in docker-compose.yml, clean volume etc.