Video coming soon…
📡 Setup EMQX — High-Performance, Scalable MQTT Broker
Deploy EMQX on Ubuntu with Docker — a massively scalable MQTT broker for IoT messaging, with a rich management dashboard, handling everything from a home lab to millions of devices, MQTT on port 1885.
⚠️ This script is provided for demo and testing purposes only. Not intended for production use.
📦 Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/iot/emqx/emqx-ubuntu.sh
chmod +x emqx-ubuntu.sh
sudo bash emqx-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/iot/emqx/emqx-ubuntu.sh
2 Make it Executable
chmod +x emqx-ubuntu.sh
3 Run the Installer
The script installs Docker if needed and starts EMQX, exposing MQTT on port 1885, secure MQTT (TLS) on 8883, and the management dashboard on 18083. Its data and logs are kept in mounted volumes.
sudo bash emqx-ubuntu.sh
4 Open the Dashboard and Change the Password
Open the EMQX dashboard, log in with the default admin / public credentials, and change the password immediately:
http://<your-server-ip>:18083
Ports Used
| Port | Purpose |
|---|---|
| 1885 | MQTT (host → container 1883) |
| 8883 | Secure MQTT over TLS |
| 18083 | Management dashboard — default login admin / public, change it |