Adding docker instructions
This commit is contained in:
parent
f7c77bd860
commit
08cecb4045
@ -117,6 +117,15 @@ been used during development, but any MQTTv5 broker is supported.
|
|||||||
Stabilizer utilizes a static IP address for broker configuration. Ensure the IP address was
|
Stabilizer utilizes a static IP address for broker configuration. Ensure the IP address was
|
||||||
[configured](#building-firmware) properly to point to your broker before continuing.
|
[configured](#building-firmware) properly to point to your broker before continuing.
|
||||||
|
|
||||||
|
We recommend running Mosquitto through [Docker](https://docker.com). After docker has been
|
||||||
|
installed, run the following command from the `stabilizer` repository:
|
||||||
|
```
|
||||||
|
docker run -p 1883:1883 --name mosquitto -v `pwd`/mosquitto.conf:/mosquitto/config/mosquitto.conf -v /mosquitto/data -v /mosquitto/log eclipse-mosquitto:2
|
||||||
|
```
|
||||||
|
|
||||||
|
> _Note_: The above command assumes a bash shell. If using powershell, replace `` `pwd` `` with
|
||||||
|
> `${pwd}`
|
||||||
|
|
||||||
## Test the Connection
|
## Test the Connection
|
||||||
Once your broker is running, test that Stabilizer is properly connected to it.
|
Once your broker is running, test that Stabilizer is properly connected to it.
|
||||||
|
|
||||||
|
2
mosquitto.conf
Normal file
2
mosquitto.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
allow_anonymous true
|
||||||
|
listener 1883
|
Loading…
Reference in New Issue
Block a user