new easy way to update postgres in your docker-compose.yml
instead of
image: postgres:16-alpine
use
image: pgautoupgrade/pgautoupgrade:16-alpine
Then all the upgrade instructions of backup->update->import backups go away and all you need to do is restart the docker container. (still keep backups though!)