From b4465e0e7f576fc84dfaae6c17a00cb7bf6d2fbb Mon Sep 17 00:00:00 2001 From: john Date: Wed, 4 Feb 2026 15:02:18 +0000 Subject: [PATCH] Add mosquitto/mosquitto.conf Placed in the mqtt/config direcory. The password file has to be 'touched' to get the container to stay up and then you log into the container, remove the file, then use an in-built utility to create a new file , with user name and password --- mosquitto/mosquitto.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 mosquitto/mosquitto.conf diff --git a/mosquitto/mosquitto.conf b/mosquitto/mosquitto.conf new file mode 100644 index 0000000..b0d5abb --- /dev/null +++ b/mosquitto/mosquitto.conf @@ -0,0 +1,21 @@ +persistence true +persistence_location /mosquitto/data/ +log_type subscribe +log_type unsubscribe +log_type websockets +log_type error +log_type warning +log_type notice +log_type information +log_dest file /mosquitto/log/mosquitto.log +log_dest stdout + +password_file /mosquitto/data/passwd_file +allow_anonymous false + +# MQTT Default listener +listener 1883 0.0.0.0 + +# MQTT over WebSockets +listener 9001 0.0.0.0 +protocol websockets