📡 Setup ThingsBoard — IoT Platform & Dashboards
Deploy ThingsBoard on Ubuntu — an open-source IoT platform for device management, telemetry collection over MQTT and CoAP, rule-engine automation, and real-time dashboards.
📦 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/thingsboard/thingsboard-ubuntu.sh
chmod +x thingsboard-ubuntu.sh
sudo bash thingsboard-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/iot/thingsboard/thingsboard-ubuntu.sh
2 Make it Executable
chmod +x thingsboard-ubuntu.sh
3 Run the Installer
The script installs Docker if needed and pulls the thingsboard/tb-postgres image, which bundles ThingsBoard and PostgreSQL in one container. It exposes the web UI on 8158, MQTT on 1884, and CoAP on UDP 5683-5688.
sudo bash thingsboard-ubuntu.sh
4 Log In to the Web UI
Open your browser and navigate to ThingsBoard, then log in as the tenant administrator with tenant@thingsboard.org / tenant and change the password immediately:
http://<your-server-ip>:8158
Ports Used
| Port | Purpose |
|---|---|
| 8158 | Web UI + REST API (host → container 9090) |
| 1884 | MQTT telemetry (host → container 1883) |
| 5683-5688/udp | CoAP telemetry |