This repository contains the necessary files to deploy the Eclipse Mosquitto MQTT broker on CasaOS using Docker. The setup includes a configuration file for Mosquitto and a password file for user authentication.
eclipse-mosquitto.yaml
: Docker Compose file for deploying Mosquitto.mosquitto.conf
: Configuration file for the Mosquitto service.pwfile
: A password file containing user credentials in the formatpassword:user
.
Follow these steps to deploy the Mosquitto MQTT broker on CasaOS:
Drop the eclipse-mosquitto.yaml
file into the CasaOS custom apps directory.
Build the application using the CasaOS interface.
Drop the mosquitto.conf
and pwfile
files into the following directory:
/DATA/AppData/eclipse-mosquitto/mosquitto/config
Start the Mosquitto service through the CasaOS interface.
- Username: user
- Password: user
For more information on authentication methods, visit the Mosquitto Authentication Documentation.
To change the password for a user, you can create a new password file using the following command in the terminal:
mosquitto_passwd -c pwfile yourusername
- Ensure that the Mosquitto service has access to the
pwfile
and that it is readable by the user running the Mosquitto broker.
This setup provides a secure and efficient way to run the Mosquitto MQTT broker on CasaOS. Make sure to follow the instructions carefully to ensure proper configuration and security.