mqtt.kafka.broker
mqtt.kafka.broker
This is the resource folder for the running the MQTT Kafka broker guide found on our docs.
Running locally
This cookbook runs using Docker compose.
Setup
The setup.sh
script will:
create the necessary kafka topics
create an MQTT broker at
mqtt://localhost:7183
Setup with a bitnami Kafka cluster
./setup.sh
Setup with a Redpanda cluster
KAFKA_VENDOR_PROFILE=redpanda ./setup.sh
alternatively with the plain docker compose command respectively
docker compose --profile kafka --profile init-kafka up -d
KAFKA_VENDOR_PROFILE=redpanda docker compose --profile redpanda --profile init-redpanda up -d
Using this cookbook
Follow the steps on our MQTT Kafka broker guide
Teardown
The teardown.sh
script will remove any resources created.
./teardown.sh