Public | Automated Build

Last pushed: a year ago
Short Description
Raspberry Pi compatible Docker Image with mosquitto MQTT broker
Full Description

docker-rpi-mosquitto

Raspberry Pi compatible Docker Image with mosquitto MQTT broker.
Based upon pascaldevink/rpi-mosquitto.

How to run

docker run -it -p 1883:1883 -p 9001:9001 fstehle/rpi-mosquitto

Exposes Port 1883 (MQTT) 9001 (Websocket MQTT)

Alternatively you can use volumes to make the changes persistent and change the configuration.

mkdir -p /srv/mqtt/config/
mkdir -p /srv/mqtt/data/
mkdir -p /srv/mqtt/log/
# place your mosquitto.conf in /srv/mqtt/config/

docker run -it -p 1883:1883 -p 9001:9001 \
-v /srv/mqtt/config:/mqtt/config:ro \
-v /srv/mqtt/log:/mqtt/log \
-v /srv/mqtt/data/:/mqtt/data/ \
--name mqtt fstehle/rpi-mosquitto
Docker Pull Command
Owner
fstehle
Source Repository