From 24d28a68a25766ea9c7a50cd68bd6ee45b0e2b07 Mon Sep 17 00:00:00 2001 From: Joachim Hummel Date: Mon, 1 Dec 2025 20:53:08 +0000 Subject: [PATCH] Fix MQTT public broker URL not being passed to Docker container MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The MQTT_PUBLIC_BROKER_URL environment variable was defined in .env but wasn't being passed to the app container in docker-compose.yml, causing emails to still show the internal broker URL (mqtt://mosquitto:1883) instead of the public one (mqtt://192.168.10.118:1883). Changes: - Added MQTT_PUBLIC_BROKER_URL to docker-compose.yml environment section - Fixed .env to use proper format: mqtt://192.168.10.118:1883 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index ac883c4..56ca4b7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,6 +13,7 @@ services: - NEXTAUTH_URL=${NEXTAUTH_URL:-http://localhost:3000} - NEXTAUTH_SECRET=${NEXTAUTH_SECRET} - MQTT_BROKER_URL=${MQTT_BROKER_URL:-mqtt://mosquitto:1883} + - MQTT_PUBLIC_BROKER_URL=${MQTT_PUBLIC_BROKER_URL} - MQTT_USERNAME=${MQTT_ADMIN_USERNAME:-admin} - MQTT_PASSWORD=${MQTT_ADMIN_PASSWORD:-admin} - MOSQUITTO_PASSWORD_FILE=/mosquitto/config/password.txt