From 4653afa3b523038ce111ab7b17661b5fc2d5a5e2 Mon Sep 17 00:00:00 2001 From: Alex van den Berg <65889584+Ap3xY@users.noreply.github.com> Date: Tue, 4 Nov 2025 03:13:52 +0200 Subject: [PATCH] feat(ruby-rails-postgres): update PostgreSQL volume path for Docker image 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 --- src/ruby-rails-postgres/.devcontainer/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ruby-rails-postgres/.devcontainer/docker-compose.yml b/src/ruby-rails-postgres/.devcontainer/docker-compose.yml index a963103b..ef1eb42e 100644 --- a/src/ruby-rails-postgres/.devcontainer/docker-compose.yml +++ b/src/ruby-rails-postgres/.devcontainer/docker-compose.yml @@ -22,7 +22,7 @@ services: image: postgres:latest restart: unless-stopped volumes: - - postgres-data:/var/lib/postgresql/data + - postgres-data:/var/lib/postgresql - ./create-db-user.sql:/docker-entrypoint-initdb.d/create-db-user.sql environment: POSTGRES_USER: postgres