GithubHelp home page GithubHelp logo

0del / mosquitto-docker-compose Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vvatelot/mosquitto-docker-compose

0.0 0.0 0.0 2 KB

A simple Mosquitto Docker Compose template

License: MIT License

mosquitto-docker-compose's Introduction

Mosquitto Logo

Simple Mosquitto broker

This is a simple Mosquitto broker to to quickly initialize projects requiring an MQTT broker. The config file is in the folder config/mosquitto.conf.

By default we activated the log and data persistance (respectively in log and data folder). The authentication can be activated if needed.

How to use

To start the container, just :

docker-compose up -d

The Mosquitto broker is now available on localhost. You can test it easily (require Mosquitto client):

| In one shell:

mosquitto_sub -h localhost -t "sensor/temperature"

| In a second shell:

mosquitto_pub -h localhost -t sensor/temperature -m 23

Enabling authentication

In the config file, just uncomment the Authentication part and then restart the container. The default user is admin/password.

You always have to restart if you want the modification to be taken in account:

docker-compose restart

Change user password / create a new user:

docker-compose exec mosquitto mosquitto_passwd -b /mosquitto/config/password.txt user password

Delete user:

docker-compose exec mosquitto mosquitto_passwd -D /mosquitto/config/password.txt user

mosquitto-docker-compose's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.