https://github.com/natthasath/docker-mosquitto
Mosquitto is an open-source MQTT broker that facilitates communication between IoT devices, supports security features and runs on various platforms.
https://github.com/natthasath/docker-mosquitto
docker-compose message-queue mosquitto mqtt
Last synced: 2 months ago
JSON representation
Mosquitto is an open-source MQTT broker that facilitates communication between IoT devices, supports security features and runs on various platforms.
- Host: GitHub
- URL: https://github.com/natthasath/docker-mosquitto
- Owner: natthasath
- License: mit
- Created: 2023-01-24T09:26:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-18T03:04:05.000Z (over 1 year ago)
- Last Synced: 2025-06-04T22:11:32.465Z (about 1 year ago)
- Topics: docker-compose, message-queue, mosquitto, mqtt
- Language: YAML
- Homepage: https://github.com/vvatelot/mosquitto-docker-compose
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ๐ Docker Mosquitto
Mosquitto is an open-source MQTT broker that facilitates communication between IoT devices, supports security features and runs on various platforms.



### ๐ MQTT
- username : `admin` password : `admin`
```shell
mqtt://localhost:1883/
mqtts://localhost:9001/
```
### ๐ Run
```shell
docker-compose up -d
```
### ๐ Publisher
```shell
mosquitto_sub -h localhost -t "sensor/temperature"
```
### ๐ Subscriber
```shell
mosquitto_pub -h localhost -t sensor/temperature -m 23
```
### ๐งพ Create User
```shell
docker-compose exec mosquitto mosquitto_passwd -b /mosquitto/config/password.txt username password
```
### ๐งพ Delete User
```shell
docker-compose exec mosquitto mosquitto_passwd -D /mosquitto/config/password.txt username
```