Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres version mismatch on integrated backup #5

Closed
TechInterMezzo opened this issue Sep 12, 2024 · 2 comments
Closed

Postgres version mismatch on integrated backup #5

TechInterMezzo opened this issue Sep 12, 2024 · 2 comments
Assignees

Comments

@TechInterMezzo
Copy link

The docker compose file uses the latest postgres version (v16) for the database server but the Dockerfile uses stable debian version with their current postgres-client package (v15). The backup with pg_dump fails with a version mismatch.

I fixed that in my Dockerfile by using these commands in RUN:

apt-get install -y postgresql-common
YES=true /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
apt-get postgresql-client-16

And in the docker compose file i set the postgres server image to a fixed version:
image: postgres:16

@r3-gabriel r3-gabriel self-assigned this Sep 12, 2024
@r3-gabriel
Copy link
Member

I have not had time to test it myself, but what you write makes sense.

I´ll take a stab at it soon. Thank you for the report.

@r3-gabriel
Copy link
Member

Updated dockerfile and compose files to set a fixed os & DB server version to make sure postgres client utilities stay compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants