49 Eclipse mosquitto MQTT broker installation in Docker on Synology NAS with Portainer

Опубликовано: 21 Март 2026
на канале: EzEsAz
5,013
21

HU felirat & EN subtitle!
📺 In this video I present the installation of the Eclipse mosquitto MQTT broker in Docker on Synology NAS with Portainer. In the next video I'll introduce the MQTT Home Assistant integration and I'll integrat through it a Shelly 1PM flashed with Tasmota.

🎬 CHAPTERS
00:00 Installation without user name and password
03:30 Set username and password

Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. Mosquitto is lightweight and is suitable for use on all devices from low power single board computers to full servers.
The MQTT protocol provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for Internet of Things messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers.

🔗 Eclipse Mosquitto™
https://mosquitto.org/

🔗 Eclipse Mosquitto™ on DockerHub
https://hub.docker.com/_/eclipse-mosq...

🔗 MQTT Explorer
An all-round MQTT client that provides a structured topic overview
https://mqtt-explorer.com/

📘 Docker compose file for Synology NAS:
version: "3"
name: mosquittotest
services:
eclipse-mosquitto:
stdin_open: true
tty: true
restart: always
network_mode: host
ports:
1883:1883
9001:9001
volumes:
/volume1/docker/mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf
/volume1/docker/mosquitto/config:/mosquitto/config/
/volume1/docker/mosquitto/data:/mosquitto/data
/volume1/docker/mosquitto/log:/mosquitto/log
image: eclipse-mosquitto


📘 mosquitto.conf file for anonymus login
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
listener 1883 192.168.1.200
allow_anonymous true

📘 mosquitto.conf file with password.txt location
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
listener 1883 192.168.1.200
password_file /mosquitto/config/password.txt

👉 mosquitto password command
mosquitto_passwd -c /mosquitto/config/password.txt username

💻 The system used for the demonstration:
Synology DS718+, Intel Celeron J3455, 2048 MB, DSM 7.1.1
Docker 20.10.3-1308