From 8d7c0701dc4c2899d775c73f433569597d71ff96 Mon Sep 17 00:00:00 2001 From: JWheelMaker <250540+jwheelmaker@noreply.gitea.com> Date: Thu, 1 Oct 2026 16:12:52 +0000 Subject: [PATCH] docs/installation/with-docker.md Update PostgreSQL volume path for PostgreSQL 18 (#570) The Docker Compose example currently mounts the PostgreSQL data directory to `/var/lib/postgresql/data`. With PostgreSQL 18, the official PostgreSQL Docker image expects the volume to be mounted at `/var/lib/postgresql` instead. Mounting `/var/lib/postgresql/data` causes the container to fail during startup because the image detects PostgreSQL data at an unused mount point. This change updates the example to use the recommended `/var/lib/postgresql` mount path for PostgreSQL 18 and newer. --------- Co-authored-by: silverwind Reviewed-on: https://gitea.com/gitea/docs/pulls/570 Reviewed-by: silverwind <2021+silverwind@noreply.gitea.com> Co-authored-by: JWheelMaker <250540+jwheelmaker@noreply.gitea.com> --- docs/installation/with-docker.md | 2 +- versioned_docs/version-28/installation/with-docker.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/installation/with-docker.md b/docs/installation/with-docker.md index 895e6797..a855fcb1 100644 --- a/docs/installation/with-docker.md +++ b/docs/installation/with-docker.md @@ -191,7 +191,7 @@ services: + networks: + - gitea + volumes: -+ - ./postgres:/var/lib/postgresql/data ++ - ./postgres:/var/lib/postgresql ``` ## Named volumes diff --git a/versioned_docs/version-28/installation/with-docker.md b/versioned_docs/version-28/installation/with-docker.md index 895e6797..a855fcb1 100644 --- a/versioned_docs/version-28/installation/with-docker.md +++ b/versioned_docs/version-28/installation/with-docker.md @@ -191,7 +191,7 @@ services: + networks: + - gitea + volumes: -+ - ./postgres:/var/lib/postgresql/data ++ - ./postgres:/var/lib/postgresql ``` ## Named volumes