mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 11:50:53 +00:00
.
This commit is contained in:
@@ -5,14 +5,17 @@
|
|||||||
## MQTT Mosquito Broker
|
## MQTT Mosquito Broker
|
||||||
<p>Mosquitto broker can be easily deployed using Docker compose file shown below. In the example below, MQTT broker listens to the ports 1883 (unecrypted) and 8883 (encrypted SSL). </p>
|
<p>Mosquitto broker can be easily deployed using Docker compose file shown below. In the example below, MQTT broker listens to the ports 1883 (unecrypted) and 8883 (encrypted SSL). </p>
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Compose file below declares two volumes (config and data) to persistantly store Mosquitto configuration and data.
|
||||||
|
|
||||||
```text
|
```text
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
services:
|
services:
|
||||||
mosquitto-esp32:
|
mosquitto-esp32:
|
||||||
image: eclipse-mosquitto:latest
|
image: eclipse-mosquitto:latest
|
||||||
volumes:
|
volumes:
|
||||||
- /srv/dev-disk-by-uuid-12424c21-2056-486b-b61f-0fea49742808/docker/volumes/mosquitto/config:/mosquitto/config
|
- /srv/dev-disk-by-label/docker/volumes/mosquitto/config:/mosquitto/config
|
||||||
- /srv/dev-disk-by-uuid-12424c21-2056-486b-b61f-0fea49742808/docker/volumes/mosquitto/data:/mosquitto/data
|
- /srv/dev-disk-by-label/docker/volumes/mosquitto/data:/mosquitto/data
|
||||||
networks:
|
networks:
|
||||||
- IoT
|
- IoT
|
||||||
ports:
|
ports:
|
||||||
|
Reference in New Issue
Block a user