Fix MQTT_BROKER_URL to use .env variable in docker-compose

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 <noreply@anthropic.com>
This commit is contained in:
2025-11-29 13:57:21 +00:00
parent e8a5f59e1d
commit 0d3b6d5997

View File

@@ -12,7 +12,7 @@ services:
- AUTH_SECRET=${AUTH_SECRET} - AUTH_SECRET=${AUTH_SECRET}
- NEXTAUTH_URL=${NEXTAUTH_URL:-http://localhost:3000} - NEXTAUTH_URL=${NEXTAUTH_URL:-http://localhost:3000}
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET} - 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_USERNAME=${MQTT_ADMIN_USERNAME:-admin}
- MQTT_PASSWORD=${MQTT_ADMIN_PASSWORD:-admin} - MQTT_PASSWORD=${MQTT_ADMIN_PASSWORD:-admin}
- MOSQUITTO_PASSWORD_FILE=/mosquitto/config/password.txt - MOSQUITTO_PASSWORD_FILE=/mosquitto/config/password.txt