Skip to content

Mosquitto MQTT Broker Docker Container (amd64, arm32v6)

License

Notifications You must be signed in to change notification settings

yoo/docker-mosquitto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Docker Hub GitHub

Mosquitto Docker Container

Mosquitto MQTT Broker Docker Container (amd54, arm32v6)

The container is configured using ENVs in the format of MQ_CONF_VAR=value.

# disable anonymous auth
docker run -e MQ_ALLOW_ANONYMOUS=false johannweging/mosquitto

Users are added by index:

docker run -e USER_NAME_1=foo -e USER_PASSWORD_1=bar -e MQ_ALLOW_ANONYMOUS=false johannweging/mosquitto

Persisting MQTT data:

docker run -v data:/var/lib/mosquitto -e MQ_PERSISTENCE=true johannweging/mosquitto
# custom location trailing / required
docker run -v data:/data -e MQ_PERSISTENCE_LOCATION=/data/ MQ_PERSISTENCE=true johannweging/mosquitto

Custom user password file:

docker run -v data:/data -e MQ_ALLOW_ANONYMOUS=false -e MQ_PASSWORD_FILE=/data/pwfile johannweging/mosquitto

Architectures

The image supports amd64 and arm32v6.

docker run johannweging/mosquitto:latest-arm32v6

About

Mosquitto MQTT Broker Docker Container (amd64, arm32v6)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published