fix(matrix): separate config and data mounts for Synapse

Mount config files to /config and data directory to /data to avoid mount conflicts.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-01-28 12:48:50 +01:00
parent b017534f0b
commit b1a8ca861e
2 changed files with 4 additions and 4 deletions

View file

@ -769,7 +769,7 @@ services:
postgres:
condition: service_healthy
environment:
SYNAPSE_CONFIG_PATH: /data/homeserver.yaml
SYNAPSE_CONFIG_PATH: /config/homeserver.yaml
TZ: Europe/Berlin
# Secrets (override in .env)
SYNAPSE_DB_PASSWORD: ${SYNAPSE_DB_PASSWORD:-synapse-secure-password}
@ -778,8 +778,8 @@ services:
SYNAPSE_MACAROON_SECRET: ${SYNAPSE_MACAROON_SECRET:-change-me-macaroon-secret}
SYNAPSE_REGISTRATION_SECRET: ${SYNAPSE_REGISTRATION_SECRET:-change-me-registration-secret}
volumes:
- ./docker/matrix/homeserver.yaml:/data/homeserver.yaml:ro
- ./docker/matrix/log.config.yaml:/data/log.config.yaml:ro
- ./docker/matrix/homeserver.yaml:/config/homeserver.yaml:ro
- ./docker/matrix/log.config.yaml:/config/log.config.yaml:ro
- ./docker/matrix/data:/data
ports:
- "8008:8008"

View file

@ -38,7 +38,7 @@ database:
# Logging
# ============================================
log_config: "/data/log.config.yaml"
log_config: "/config/log.config.yaml"
# ============================================
# Media Storage