Open the server Apps tab
Select the tutorial-vps VPS, open the Apps tab, and start a new app deployment. Keep sensitive server details hidden before capturing or sharing screenshots.


Lightweight MQTT message broker for IoT and messaging
Add your server credentials to Server Compass
Choose from our template library
Fill in settings and click Deploy
Use the Mosquitto template in Server Compass to deploy an MQTT broker on your VPS, then verify it with a disposable publish/subscribe round trip.
Select the tutorial-vps VPS, open the Apps tab, and start a new app deployment. Keep sensitive server details hidden before capturing or sharing screenshots.

Click New App and choose the template deployment path so Server Compass can load the built-in catalog.

Use the template picker search to find Mosquitto in the Server Compass template catalog.

Choose the Mosquitto template. Server Compass fills the broker service, generated configuration, MQTT/WebSocket ports, and persistent data/log volumes.

Confirm the app name and compose service. In this run, the app was named mosquitto-demo and used host port 1883.

Review the generated compose settings, confirm the MQTT and WebSocket ports are available, and click Deploy.

Keep the deployment modal open while Server Compass uploads the compose file, pulls the Mosquitto image, starts the container, and verifies the stack.

After deployment finishes, return to the Apps tab and confirm the Mosquitto app is marked Running with its published ports available.

Run a disposable MQTT subscribe/publish check inside the broker container and confirm the WebSocket listener is open.

A disposable MQTT subscriber received `server-compass-ok`, and the WebSocket port accepted a TCP connection.
It deploys the Eclipse Mosquitto broker with generated configuration for MQTT and WebSocket listeners plus persistent data/log volumes.
The tutorial used host port 1883 for MQTT. The template also publishes the WebSocket listener port.
The template starts with anonymous listeners so it is immediately testable. For production, add users/passwords, disable anonymous access, and configure TLS or private networking.
No. The deployment guide should live on the Mosquitto template detail page and be linked from the reusable template deployment docs page.
Mosquitto is a lightweight MQTT message broker, the standard protocol for IoT devices. Self-hosting means your smart home and IoT data stays on your network — not flowing through corporate cloud servers that mine your data for usage patterns and advertising.
EMQX is enterprise-grade with more features. Mosquitto is simpler, lighter, and sufficient for most homelab and small-scale IoT.
AWS IoT charges per message and sends data to Amazon. Mosquitto keeps all IoT data on your local network.
HiveMQ has commercial licensing. Mosquitto is fully open-source and the most widely deployed MQTT broker.
Server Compass deploys Mosquitto with just 64MB RAM — it runs on any server, even alongside dozens of other containers. Persistent configuration ensures your MQTT setup survives updates.
Download Server CompassAfter deploying Mosquitto with Server Compass, complete these steps to finish setup
Configure authentication
Set up topics
Connect MQTT clients
Need help? Check out our documentation for detailed guides.
Common questions about self-hosting Mosquitto
Simply download Server Compass, connect to your VPS, and select Mosquitto from the templates list. Fill in the required configuration and click Deploy. The entire process takes under 3 minutes.
Mosquitto requires a minimum of 64MB RAM. We recommend a VPS with at least 1024MB RAM for optimal performance. Any modern Linux server with Docker support will work.
Yes! Server Compass provides volume mapping that allows you to import existing data. You can also use standard Mosquitto backup and restore procedures.
Server Compass makes updates easy. Simply click the Update button in your deployment dashboard, and the latest Mosquitto image will be pulled and deployed with zero downtime.
Mosquitto is open-source software. You only pay for your VPS hosting (typically $5-20/month) and optionally Server Compass ($29 one-time). No subscription fees or per-seat pricing.
Download Server Compass and deploy Mosquitto to your VPS in under 3 minutes. No Docker expertise required.
Download Server Compass