mirror of
https://gitea.com/gitea/docs.git
synced 2026-11-04 09:15:33 +00:00
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 <[email protected]> Reviewed-on: https://gitea.com/gitea/docs/pulls/570 Reviewed-by: silverwind <[email protected]> Co-authored-by: JWheelMaker <[email protected]>
This commit is contained in:
committed by
silverwind
co-authored by
silverwind
parent
7219c0e44d
commit
8d7c0701dc
@@ -191,7 +191,7 @@ services:
|
||||
+ networks:
|
||||
+ - gitea
|
||||
+ volumes:
|
||||
+ - ./postgres:/var/lib/postgresql/data
|
||||
+ - ./postgres:/var/lib/postgresql
|
||||
```
|
||||
|
||||
## Named volumes
|
||||
|
||||
@@ -191,7 +191,7 @@ services:
|
||||
+ networks:
|
||||
+ - gitea
|
||||
+ volumes:
|
||||
+ - ./postgres:/var/lib/postgresql/data
|
||||
+ - ./postgres:/var/lib/postgresql
|
||||
```
|
||||
|
||||
## Named volumes
|
||||
|
||||
Reference in New Issue
Block a user