From 2874e202ea69c75e02d10c8ce2eea8e09cb3f8ef Mon Sep 17 00:00:00 2001 From: Till JS Date: Sun, 29 Mar 2026 15:15:19 +0200 Subject: [PATCH] fix: use entrypoint copy pattern for all Colima file-mount issues Colima's VirtioFS mounts files as directories, breaking direct file-to-file bind mounts. Fix: mount host dir to /mnt/*-config, then copy files to target path in entrypoint before exec'ing the actual process. Affected services: SearXNG, VictoriaMetrics, Loki, vmalert, Alertmanager, Synapse Co-Authored-By: Claude Opus 4.6 (1M context) --- docker-compose.macmini.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-compose.macmini.yml b/docker-compose.macmini.yml index b1084177b..45d418734 100644 --- a/docker-compose.macmini.yml +++ b/docker-compose.macmini.yml @@ -696,8 +696,12 @@ services: depends_on: postgres: condition: service_healthy + entrypoint: > + sh -c "mkdir -p /config && + cp /mnt/synapse-config/*.yaml /config/ 2>/dev/null; + cp -r /mnt/synapse-config/appservices /config/ 2>/dev/null; + exec python -m synapse.app.homeserver -c /config/homeserver.yaml" environment: - SYNAPSE_CONFIG_PATH: /config/homeserver.yaml TZ: Europe/Berlin SYNAPSE_DB_PASSWORD: ${SYNAPSE_DB_PASSWORD:-synapse-secure-password} SYNAPSE_PASSWORD_PEPPER: ${SYNAPSE_PASSWORD_PEPPER:-change-me-pepper} @@ -706,7 +710,7 @@ services: SYNAPSE_REGISTRATION_SECRET: ${SYNAPSE_REGISTRATION_SECRET:-change-me-registration-secret} SYNAPSE_OIDC_CLIENT_SECRET: ${SYNAPSE_OIDC_CLIENT_SECRET} volumes: - - ./docker/matrix/config:/config:ro + - ./docker/matrix/config:/mnt/synapse-config:ro - ./docker/matrix/data:/data ports: - "4000:8008"