Self-host with Docker ยท Yantr
Mosquitto
Lightweight open-source MQTT message broker for IoT.
2
Ports
2
Notes
3
Use Cases
About
What Mosquitto does
Eclipse Mosquitto is an open-source MQTT message broker ideal for IoT and home automation. It efficiently handles lightweight publish-subscribe messaging between smart home devices, sensors, and automation controllers like Home Assistant, Node-RED, and Zigbee2MQTT.
Install Flow
How to self-host Mosquitto
Mosquitto can be deployed with standard Docker Compose using the Yantr app catalog. This page collects the basic information searchers usually need first: what Mosquitto does, which Docker image Yantr uses, default ports, deployment notes, and where to find the original compose template.
After deployment, Yantr lets you publish additional ports from the stack page using Docker-style syntax. Use 8080:8080 for a fixed host port or just 8080 to let Docker assign a random port.
Use Cases
What people run it for
- Act as the central MQTT message broker for your smart home stack.
- Route messages between IoT sensors, actuators, and automation controllers.
- Enable pub/sub communication for Zigbee2MQTT and Home Assistant.
Technical Details
Ports, image, and service metadata
Ports
| Port | Protocol | Label |
|---|---|---|
| 1883 | TCP | MQTT Broker |
| 9001 | TCP | MQTT over WebSockets |
Docker Image
eclipse-mosquitto:latest
Service Name
broker
Notes
Things to know before you deploy
- Default config allows anonymous connections. Create a password file for production use.
- Config file is stored in the mosquitto_config volume at /mosquitto/config/mosquitto.conf.
Related Apps
More tools you might pair with Mosquitto
Page generated 2026-06-23T15:50:08.758Z