From cf4bbef4f69890b616bbe3af954b484f5883df76 Mon Sep 17 00:00:00 2001 From: Thomas Dutrion Date: Tue, 26 May 2026 23:06:02 +0200 Subject: [PATCH] feat: replace MERCURE_TRANSPORT_URL with MERCURE_EXTRA_DIRECTIVES for Mercure 0.17 According to this documentation and an error message I unfortunately can't reproduce in my logs anymore, MERCURE_TRANSPORT_URL becomes MERCURE_EXTRA_DIRECTIVES. https://mercure.rocks/docs/UPGRADE#0-17 --- Dockerfile | 4 ++-- compose.override.yaml | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2602fb82..f264a26d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,8 +34,8 @@ RUN set -eux; \ # https://getcomposer.org/doc/03-cli.md#composer-allow-superuser ENV COMPOSER_ALLOW_SUPERUSER=1 -# Transport to use by Mercure (default to Bolt) -ENV MERCURE_TRANSPORT_URL=bolt:///data/mercure.db +# Extra directives for Mercure +ENV MERCURE_EXTRA_DIRECTIVES="transport bolt { path /data/mercure.db }" ENV PHP_INI_SCAN_DIR=":$PHP_INI_DIR/app.conf.d" diff --git a/compose.override.yaml b/compose.override.yaml index ed85a3fd..d097384d 100644 --- a/compose.override.yaml +++ b/compose.override.yaml @@ -14,7 +14,11 @@ services: #- /app/vendor environment: FRANKENPHP_WORKER_CONFIG: watch - MERCURE_EXTRA_DIRECTIVES: demo + MERCURE_EXTRA_DIRECTIVES: |- + transport bolt { + path /data/mercure.db + } + demo # See https://xdebug.org/docs/all_settings#mode XDEBUG_MODE: "${XDEBUG_MODE:-off}" APP_ENV: "${APP_ENV:-dev}"