TrafeX / docker-alpine-mosquitto

Mosquitto message broker in a Docker container based on Alpine Linux

Home Page:https://hub.docker.com/r/trafex/alpine-mosquitto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mosquitto Docker container

Running the Mosquitto message broker in a Docker container based on the lightweight Alpine Linux OS.

Eclipse Mosquitto™ is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 3.1 and 3.1.1. MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for "Internet of Things" messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers like the Arduino.

Works great with Home Assistant to handle MQTT. Also includes the client packages to publish & subscribe using the CLI.

Docker Pulls

Usage

Start the message broker

docker run -p 1883:1883 --name mosquitto trafex/alpine-mosquitto

Use the client to subscribe on a topic

docker exec -ti mosquitto mosquitto_sub -h 127.0.0.1 -v -t '#'

Use the client to publish to a topic

docker exec -ti mosquitto mosquitto_pub -h 127.0.0.1  -t 'hello' -m 'world'

About

Mosquitto message broker in a Docker container based on Alpine Linux

https://hub.docker.com/r/trafex/alpine-mosquitto

License:MIT License


Languages

Language:Dockerfile 100.0%