File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1- MQTT_BROKER_URI = tcp://localhost:1833
1+ MQTT_BROKER_URI = tcp://localhost:1883
22MQTT_USERNAME = mqtt_user
33MQTT_PASSWORD = secret
44
Original file line number Diff line number Diff line change @@ -145,8 +145,22 @@ from [docker hub](https://hub.docker.com/r/saicismartapi/saic-python-mqtt-gatewa
145145$ docker build -t saic-mqtt-gateway .
146146```
147147
148+ #### Use docker compose
149+
148150There is a [ docker compose file] ( docker-compose.yml ) that shows how to set up the service.
149151
152+ First setup the hidden ".env" file in the root directory of the project with your specific data
153+
154+ Test your setup with
155+ ```
156+ $ docker compose up
157+ ```
158+
159+ Let it run in background (dedicated)
160+ ```
161+ $ docker compose up -d
162+ ```
163+
150164## Commands over MQTT
151165
152166The MQTT Gateway subscribes to MQTT topics where it is listening for commands. Every topic in the table below starts
Original file line number Diff line number Diff line change @@ -3,11 +3,12 @@ services:
33 image : " saicismartapi/saic-python-mqtt-gateway:latest"
44 build :
55 context : .
6+ restart : always
67 container_name : " saic-mqtt-gateway"
78 environment :
89 - MQTT_URI=${MQTT_BROKER_URI}
910 - MQTT_USER=${MQTT_USERNAME}
10- - MQTT_PASSWORD=${MQTT_PWD }
11+ - MQTT_PASSWORD=${MQTT_PASSWORD }
1112 - SAIC_USER=${SAIC_USERNAME}
1213 - SAIC_PASSWORD=${SAIC_PWD}
1314 volumes :
You can’t perform that action at this time.
0 commit comments