Last active
March 8, 2021 13:43
-
-
Save declanbyrd/620f53511e45005a44cc53a80d62820f to your computer and use it in GitHub Desktop.
Dockerfile to create a Websocket enabled Mosquitto MQTT broker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM eclipse-mosquitto:latest | |
RUN mkdir -p /mosquitto/data | |
COPY mosquitto.conf /mosquitto/config/mosquitto.conf | |
VOLUME /mosquitto/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Logging | |
log_dest stdout | |
log_type error | |
log_type warning | |
log_type notice | |
log_type information | |
## MQTT Listener | |
listener 1883 | |
protocol mqtt | |
## WebSockets Listener | |
listener 9001 | |
protocol websockets | |
## Persistence | |
persistence false | |
## Authorisation | |
allow_anonymous true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very useful - thanks