Install
Install
Use Docker or build from source. Both paths give the same two binaries: indramqtt (the broker) and indra (the operator command).
flowchart TD Need["need binaries"] -- "has Docker" --> Docker["docker compose up"] Need -- "has Rust 1.80" --> Build["cargo build -p broker-node"] Docker -- "give" --> Bins["indramqtt + indra"] Build -- "give" --> BinsBefore you start
- Get Docker or Rust 1.80 or later.
- Keep ports 1883 and 18083 free for the check below.
Option A: Docker
Start the broker with Docker Compose:
# Needs a Docker daemon. The example test has none, so it does not run this block.git clone https://github.com/ankur-paan/indramqtt.git && cd indramqttdocker compose up -dOpen the dashboard at http://localhost:18083/dashboard. Clients connect to port 1883.
Option B: Build from source
Install Rust 1.80 or later. Build the broker with all connectors:
# Needs the Rust toolchain and network access. The example test has neither, so it does not run this block.cargo build --release -p broker-node --features fullCheck that it works
Start the broker with this file. The example test starts it for you.
[node]id = "docs-install"
[listeners.tcp]bind = "0.0.0.0:1883"
[listeners.api]bind = "0.0.0.0:18083"
[logging]level = "warn"Show the version of each binary:
"${INDRAMQTT_BIN:-indramqtt}" --versionindramqtt 0.1.0"${INDRACLI_BIN:-indra}" --versionindra 0.1.0Next steps
Write the configuration in First start. It starts the broker and checks health.