mount postgres in a subdir to avoid clashing with .gitkeep

This commit is contained in:
Matthew Hodgson
2024-11-07 09:27:38 +00:00
parent a00938f04e
commit e84434948d

View File

@@ -114,6 +114,7 @@ services:
POSTGRES_USER: matrix # FIXME: use different username+passwords for synapse & MAS DBs. POSTGRES_USER: matrix # FIXME: use different username+passwords for synapse & MAS DBs.
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
POSTGRES_INITDB_ARGS: --encoding=UTF8 --locale=C POSTGRES_INITDB_ARGS: --encoding=UTF8 --locale=C
PGDATA: /var/lib/postgresql/data/data # otherwise it clashes with .gitkeep in the parent dir
secrets: secrets:
- postgres_password - postgres_password
healthcheck: healthcheck: