Quick Start

Get mqBase running in under 5 minutes with Docker.

Prerequisites

  • Docker 20.10 or later

  • Docker Compose v2 (optional, but recommended)

Create a compose.yml file:

services:
  mqbase:
    image: dotstartech/mqbase:latest
    container_name: mqbase
    ports:
      - 1883:1883   # MQTT
      - 8080:8080   # Admin UI
      - 9001:9001   # MQTT over WebSocket
    environment:
      - MQBASE_USER=admin:yourpassword
      - MQBASE_MQTT_USER=admin:yourpassword
    volumes:
      - mqbase-data:/mosquitto/data
      - mqbase-log:/mosquitto/log
    restart: unless-stopped

volumes:
  mqbase-data:
  mqbase-log:

Start the container:

Option 2: Docker Run

Run with a single command:

Access the Admin UI

Open your browser and navigate to:

circle-check

Log in with the credentials you configured (admin:yourpassword in the examples above).

Test MQTT Connection

Using mosquitto-clients:

Using MQTT.js:

Verify Message Persistence

  1. Open the Admin UI at http://localhost:8080

  2. Go to the Database tab

  3. You should see your test message persisted with timestamp and ULID

What's Next?

Last updated