Skip to content

Instantly share code, notes, and snippets.

@alanb128
Created June 14, 2021 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanb128/1dca32d2796f772e911b4c46d05a16a9 to your computer and use it in GitHub Desktop.
Save alanb128/1dca32d2796f772e911b4c46d05a16a9 to your computer and use it in GitHub Desktop.
Mosquitto 2 Broker container
FROM arm32v6/eclipse-mosquitto
# Override v2 default behavior and allow remote access
# also allow anonymous connections
RUN \
sed -i 's/#listener/listener 1883/' /mosquitto/config/mosquitto.conf && \
sed -i 's/#allow_anonymous false/allow_anonymous true/' /mosquitto/config/mosquitto.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment