diff --git a/README.md b/README.md index c1280fb..7484d7e 100644 --- a/README.md +++ b/README.md @@ -6,19 +6,20 @@ e.g. [1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000] # Environment variables -MQTT_HOST: The host of the MQTT broker -MQTT_PORT: (Optional) The port of the MQTT broker -MQTT_TOPIC: The topic to publish to -MQTT_USERNAME: (Optional) The user for the MQTT broker -MQTT_PASSWORD: (Optional) The password for the MQTT broker +- MQTT_HOST: The host of the MQTT broker +- MQTT_PORT: (Optional) The port of the MQTT broker +- MQTT_TOPIC: The topic to publish to +- MQTT_USERNAME: (Optional) The user for the MQTT broker +- MQTT_PASSWORD: (Optional) The password for the MQTT broker -# Build +# Docker +## Build ``` docker build -t huette-energy-consumption-weekperday . ``` -# Run +## Run ``` docker run -d -e MQTT_HOST=10.2.3.2 -e MQTT_TOPIC=c3re/huette/energy/consumption/week_per_day -t huette-energy-consumption-weekperday