mirror of
https://github.com/opf/openproject-deploy.git
synced 2026-02-14 16:59:51 +00:00
use subdirectory for pgdata to support non-empty mounted volumes
This commit is contained in:
@@ -37,6 +37,11 @@ services:
|
||||
environment:
|
||||
POSTGRES_PASSWORD: p4ssw0rd
|
||||
POSTGRES_DB: openproject
|
||||
# Use subdirectory for PGDATA so that mounted volumes don't have to be empty.
|
||||
# For example, this is important when mounting an ext4 file system where
|
||||
# a lost+found directory will be automatically created once mounted.
|
||||
# This would then cause initdb to fail due to the PGDATA directory not being empty.
|
||||
PGDATA: /var/lib/postgresql/data/pgdata
|
||||
networks:
|
||||
- backend
|
||||
|
||||
|
||||
Reference in New Issue
Block a user