Can I use a later version of Postgres than Discourse?

Our base image ships with both pg client tools and server on the same major version. Since you are running a different image for PostgreSQL, and it has a different major version, you will need to handle the backup.