Skip to content

hqnicolas/eclipse-mosquitto

Repository files navigation

CasaOS Eclipse Mosquitto MQTT Docker

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.

Files Included

  • 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 format password:user.

Deployment Instructions

Follow these steps to deploy the Mosquitto MQTT broker on CasaOS:

1. Add Custom App

Drop the eclipse-mosquitto.yaml file into the CasaOS custom apps directory.

2. Build the Application

Build the application using the CasaOS interface.

3. Configure Mosquitto

Drop the mosquitto.conf and pwfile files into the following directory:

/DATA/AppData/eclipse-mosquitto/mosquitto/config

4. Run the Application

Start the Mosquitto service through the CasaOS interface.

5. Access Credentials

  • Username: user
  • Password: user

For more information on authentication methods, visit the Mosquitto Authentication Documentation.

Changing Passwords

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.

Conclusion

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.

About

Casaos image deploy for eclipse mosquitto MQTT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published