down everything and up just db container
docker compose exec db pg_dumpall -U foundkey > upgrade_backup.sqldown the container
edit compose file to use a new folder, and 17-alpine image
copy the file to the folder
up the container, open shell and get to the folder
psql -U foundkey -f upgrade_backup.sql (add -a if you want to see wall of text go down ig)
