hobbyquaker / unifi2mqtt

Connect Ubiquiti UniFi controller to MQTT :satellite:
MIT License
73 stars 27 forks source link

Parse arguments from environment variables, add Dockerfile #7

Closed ghost closed 6 years ago

ghost commented 6 years ago

I found it useful to toss this in a docker container, and maybe that could be useful for others. :)

The only real change is to add the .env() to config.js so yargs will check environment variables, the rest is basically Docker boilerplate that may save time for others.

Edit: CI failure looks like it's unrelated, since I didn't change index.js