New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow non IP (hostname) as value for environment variable gifip #103
Comments
Thanks for the feedback. I check on valid ip address indeed. Although it might introduce some unexpectec configuration errors but I do understand this is an improvement. I will implement it in one of the next releases. |
Sorry for a ping kind of message, but any progress on this please? This basically blocks me from running grott+influxdb2 in docker-compose. |
Workaround is to patch
Also note that the hostname must contain at least one dot character, otherwise Python influxdb2 client will fail with a non-sensical error message Afterwards, you can include the patched I'm attaching the version: '2'
services:
grott:
image: ledidobe/grott:2.8.2
environment:
gnomqtt: "true"
ginflux: "true"
ginflux2: "true"
gifip: "influxdb.dc"
gifport: 8086
giftoken: "xyz"
giforg: "my_org"
gifbucket: "grott"
ports:
- "5279:5279"
volumes:
- "./grottconf.py:/app/grottconf.py"
restart: unless-stopped
influxdb.dc:
image: influxdb:2.7.1
volumes:
- "./db:/var/lib/influxdb2"
ports:
- "8086:8086"
environment:
DOCKER_INFLUXDB_INIT_MODE: "setup"
DOCKER_INFLUXDB_INIT_USERNAME: "admin"
DOCKER_INFLUXDB_INIT_PASSWORD: "admin"
DOCKER_INFLUXDB_INIT_ORG: "my_org"
DOCKER_INFLUXDB_INIT_BUCKET: "grott"
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: "xyz" |
I am having the same issue. Any chance this could be supported by Grott itself? Patching |
When I set the environment variable
gifip
toinfluxdb
in version 2.6.1g it shows the error:In my Docker Compose the hostname
influxdb
is available as this is another service in the same file:Please allow hostnames in addition to IPs. InfluxDB client supports them as well like
localhost
.The text was updated successfully, but these errors were encountered: