Skip to content

Conversation

@Ap3xY
Copy link

@Ap3xY Ap3xY commented Nov 4, 2025

The official Docker image for PostgreSQL has changed its recommended volume configuration starting with version 18.

Previously, the data volume was mounted at /var/lib/postgresql/data. In newer versions, the PGDATA environment variable is version-specific (e.g., /var/lib/postgresql/18/docker), and the recommended volume mount point is now /var/lib/postgresql.

This pr updates the docker-compose.yml to reflect the new recommended practice, ensuring compatibility with PostgreSQL 18 and later.

https://hub.docker.com/_/postgres

…mage to support v18+

The official Docker image for PostgreSQL has changed its recommended volume configuration starting with version 18.

Previously, the data volume was mounted at `/var/lib/postgresql/data`. In newer versions, the `PGDATA` environment variable is version-specific (e.g., `/var/lib/postgresql/18/docker`), and the recommended volume mount point is now `/var/lib/postgresql`.

This commit updates the `docker-compose.yml` to reflect the new recommended practice, ensuring compatibility with PostgreSQL 18 and later.

https://hub.docker.com/_/postgres
@Ap3xY Ap3xY requested a review from a team as a code owner November 4, 2025 01:16
@Ap3xY Ap3xY changed the title fix(ruby-rails-postgres): update postgres volume path to support v18+ [ruby, ruby-rails-postgres] - update postgres volume path to support v18+ Nov 4, 2025
@Ap3xY Ap3xY changed the title [ruby, ruby-rails-postgres] - update postgres volume path to support v18+ [ruby, ruby-rails-postgres] - Update postgres volume path to support v18+ Nov 4, 2025
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

Successfully merging this pull request may close these issues.

1 participant