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
This commit is contained in:
2026-02-04 15:02:18 +00:00
parent 139c6c6c8a
commit b4465e0e7f

21
mosquitto/mosquitto.conf Normal file
View File

@@ -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