fix: path in docs and compose for postgres 18 (#2049)

This commit is contained in:
Joe Harrison
2025-10-16 06:36:56 +01:00
committed by GitHub
parent d95cccac6a
commit de0e9b1f35
2 changed files with 2 additions and 2 deletions

View File

@@ -31,6 +31,6 @@ services:
ports: ports:
- '5432:5432' - '5432:5432'
volumes: volumes:
- postgres:var/lib/postgresql/18/docker - postgres:/var/lib/postgresql
volumes: volumes:
postgres: postgres:

View File

@@ -20,7 +20,7 @@ DB_LOG_QUERIES="false" # (optional) Whether to log the DB queries for debugging.
## PostgreSQL Options ## PostgreSQL Options
:::caution :::caution
When migrating Postgres from version 17 to 18 in Docker, note that the data mount point has changed. Instead of using `/var/lib/postgresql/data`, the correct mount path is now `/var/lib/postgresql/18/docker`. When migrating Postgres from version 17 to 18 in Docker, note that the data mount point has changed. Instead of using `/var/lib/postgresql/data`, the correct mount path is now `/var/lib/postgresql`.
Refer to the [PostgreSQL Docker documentation](https://hub.docker.com/_/postgres/#pgdata) to learn how to migrate or opt out of this change. Refer to the [PostgreSQL Docker documentation](https://hub.docker.com/_/postgres/#pgdata) to learn how to migrate or opt out of this change.
::: :::