From 0d3b6d599709f85900821011dce23e3ab690c887 Mon Sep 17 00:00:00 2001 From: Joachim Hummel Date: Sat, 29 Nov 2025 13:57:21 +0000 Subject: [PATCH] Fix MQTT_BROKER_URL to use .env variable in docker-compose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed hardcoded MQTT_BROKER_URL to read from .env file with fallback to mqtt://mosquitto:1883. This allows using external MQTT brokers like mqtt://tracking.unixweb.de:1883 by simply updating the .env file. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8a5cad2..badea2f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,7 @@ services: - AUTH_SECRET=${AUTH_SECRET} - NEXTAUTH_URL=${NEXTAUTH_URL:-http://localhost:3000} - NEXTAUTH_SECRET=${NEXTAUTH_SECRET} - - MQTT_BROKER_URL=mqtt://mosquitto:1883 + - MQTT_BROKER_URL=${MQTT_BROKER_URL:-mqtt://mosquitto:1883} - MQTT_USERNAME=${MQTT_ADMIN_USERNAME:-admin} - MQTT_PASSWORD=${MQTT_ADMIN_PASSWORD:-admin} - MOSQUITTO_PASSWORD_FILE=/mosquitto/config/password.txt