https://github.com/cicorias/mosquitto-container
https://github.com/cicorias/mosquitto-container
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cicorias/mosquitto-container
- Owner: cicorias
- Created: 2019-03-21T20:03:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-21T20:07:48.000Z (about 6 years ago)
- Last Synced: 2025-03-28T19:54:47.807Z (30 days ago)
- Language: Shell
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# An eclipse-mosquitto docker container
Does basic mosquitto but also persists log / data - original application is for Azure IoT Edge.
Alternative base image is [official Eclipse Mosquitto MQTT Broker Docker image](https://hub.docker.com/_/eclipse-mosquitto/).
## Usage
Pretty simple just ...### Build and run
```
docker-compose build
docker-compose up -d
```### Testing
Try the [MQTT client](http://mqttfx.org/) to connect to the Mosquitto MQTT Broker. Use `127.0.0.1:1883` for a local environment.
Or use official `mosquitto_pub` and `mosquitto_sub` utilities for publishing and subscribing.
```
# Subscribe to topic.
mosquitto_sub -h localhost -t test
# Publish a message.
mosquitto_pub -h localhost -t test -m "hello."
```