2026-01-18 13:24:55 +00:00
|
|
|
services:
|
2026-01-18 13:53:25 +00:00
|
|
|
mosquitto:
|
|
|
|
|
image: eclipse-mosquitto:2
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
|
|
environment:
|
|
|
|
|
TZ: ${TZ:-Europe/Berlin}
|
|
|
|
|
MQTT_HOSTNAME: ${MQTT_HOSTNAME:-mqtt.local}
|
|
|
|
|
MQTT_USER: ${MQTT_USER:-mqttuser}
|
|
|
|
|
MQTT_TLS_PORT: ${MQTT_TLS_PORT:-8883}
|
2026-01-18 14:05:46 +00:00
|
|
|
|
2026-01-18 14:10:29 +00:00
|
|
|
volumes:
|
|
|
|
|
- ${CONFIG_PATH:-./config}:/mosquitto/config
|
|
|
|
|
- ${DATA_PATH:-./data}:/mosquitto/data
|
|
|
|
|
- ${LOG_PATH:-./log}:/mosquitto/log
|
2026-01-18 14:05:46 +00:00
|
|
|
- /etc/ssl/certs:/etc/ssl/certs:ro
|
2026-01-18 14:10:29 +00:00
|
|
|
- ${TLS_PATH:-./tls}:/mosquitto/tls
|
|
|
|
|
|
2026-01-18 13:53:25 +00:00
|
|
|
ports:
|
|
|
|
|
- "${MQTT_TLS_PORT:-8883}:8883"
|
|
|
|
|
|
2026-01-18 14:10:29 +00:00
|
|
|
dns:
|
2026-04-10 17:17:46 +00:00
|
|
|
- ${DNS_SERVER}
|