mcci-catena / docker-iot-dashboard

A complete IoT server for LoRaWAN IoT projects: node-red + influxdb + grafana + ssl + let's encrypt using docker-compose.
MIT License
101 stars 59 forks source link

Latest Docker-compose hates timezone setting #48

Closed terrillmoore closed 5 years ago

terrillmoore commented 5 years ago

Uh-oh, although this was working, the latest docker-compose update catches an error:

https://github.com/mcci-catena/docker-ttn-dashboard/blob/bf851e9d76f8aaa2d1774148e9a8b6a341f0efd3/docker-compose.yml#L161-L162

The leading - is spurious, and new versions of docker-compose fail with:

$ docker-compose --version
docker-compose version 1.23.2, build 1110ad01
$ docker-compose up -d
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.node-red.environment contains {"TZ": "GMT"}, which is an invalid type, it should be a string

Removing the - fixes things (and makes it like the other environment groups.