Self-host VerneMQ on a VPS
A scalable MQTT broker with a status page and a data volume, with one generated admin user and anonymous access off. MQTT on 1883 stays private.
levelrail-cli templates deploy vernemq --name my-vernemqSpecification
- Status
- Listed
- Category
- Infrastructure
- Services
- vernemq
- Ports
- 8888, 1883
- Volumes
- 1
- Memory
- about 256 MiB
- arm64
- unknown
- amd64
- unknown
- Settings to fill in
- none
- License
- Permissive license, Apache-2.0
- Listing
- Community template
About VerneMQ
A scalable MQTT broker with a status page and a data volume, with one generated admin user and anonymous access off. MQTT on 1883 stays private.
What it deploys
VerneMQ runs as one service in a single Compose app, listening on ports 8888, 1883, with 1 named volume mount.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| vernemq | vernemq/vernemq | 2.2.1-alpine | 8888, 1883 | vernemq_data -> /vernemq/data |
Before you install
- CPU architecture. arm64 unknown. The scan could not read a manifest or the tag is chosen at install time. This is not a claim either way.
- Listed. It is in the catalog. Back up the data volume before changing an image tag.
Settings and environment
You do not have to fill in anything. 1 secret is generated at deploy and stored encrypted. Values are never shown here.
| Service | Variable | Value |
|---|---|---|
| vernemq | DOCKER_VERNEMQ_ACCEPT_EULA | Preset by the template |
| vernemq | DOCKER_VERNEMQ_ALLOW_ANONYMOUS | Preset by the template |
| vernemq | DOCKER_VERNEMQ_USER_admin | Generated at deploy |
First run
- Connect MQTT clients in this project to vernemq:1883 as user admin with the generated password from the app secrets.
Install VerneMQ on a VPS
-
Install Levelrail on a fresh VPS
Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.
curl -fsSL https://levelrail.com/install.sh | sudo sh -
Sign in
Open the setup link, choose a password, then log the CLI in. The CLI install command is
curl -fsSL https://levelrail.com/install-cli.sh | shif the machine does not have it. See Getting started.levelrail-cli login --device -
Read the template
Shows the entry, including its full compose.yaml.
levelrail-cli templates get vernemq -
Deploy it
This deploys the template compose file as an app. The app name defaults to the template id; --name sets another.
levelrail-cli templates deploy vernemq --name my-vernemq
Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then VerneMQ.
Docs and upstream
More in Infrastructure
- TraefikA cloud native reverse proxy and load balancer with a built-in dashboard, on the official image. The dashboard has no login, so put it behind an access rule before you give it a public address.
- Technitium DNS ServerA full-featured authoritative and recursive DNS server with DNS-over-HTTPS/TLS and a web console.
- Snipe-ITIT asset management for tracking hardware, licenses, and accessories, and who currently has what.
- RustDesk ServerSelf-hosted RustDesk ID and relay servers (AGPL-3.0).
- RabbitMQA widely used open-source message broker supporting AMQP, MQTT, and STOMP.
- PortainerA web UI for managing containers, images, volumes, and networks.