Installing Mosquitto Broker with Docker

Опубликовано: 14 Февраль 2026
на канале: pixeledi Tech Hub
4,159
33

#nodered #mqtt #homelab #smarthome #esp32 #arduino #ubuntu #linux

Learn how to build powerful IoT applications with Node-RED and use the ESP32 as your reliable hardware device. The video shown here is an excerpt from my current **course with over 1,500 participants**:
🔗 https://www.udemy.com/course/node-red...

You can find my corresponding *book/ebook* on the topic of Node-RED here:
🔗 https://www.amazon.de/Node-RED-Progra...
🔗 https://www.thalia.de/shop/home/artik...

Docker run
```
docker run -d \
-p 1883:1883 \
-p 9001:9001 \
-v $PWD/mosquitto.conf:/mosquitto/config/mosquitto.conf\
-v $PWD/mosquitto_data:/mosquitto/data \
-v $PWD/mosquitto_log:/mosquitto/log \
-v $PWD/config:/mosquitto/config \
--restart=always\
--name=mosquitto-server\
eclipse-mosquitto:latest
```

Mosquito config
```bash
allow_anonymous false
password_file /mosquitto/config/mosquitto.passwd
listener 1883 0.0.0.0

persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
```


More videos about this one Topic:
Open Source Technologies
   • Open-Source-Stuff  
ESP32-XIAO
   • ESP32  

Visit me on 👉 https://links.pixeledi.eu 👈

This video is provided under the MIT License without warranty; use is at your own risk.
Imprint: pixeledi.eu/impressum