Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 22 days ago
JSON representation

Mosquitto is an open-source MQTT broker that facilitates communication between IoT devices, supports security features and runs on various platforms.

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.

![version](https://img.shields.io/badge/version-1.0-blue)
![rating](https://img.shields.io/badge/rating-โ˜…โ˜…โ˜…โ˜…โ˜…-yellow)
![uptime](https://img.shields.io/badge/uptime-100%25-brightgreen)

### ๐Ÿš€ 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
```