Make influx work in Docker #110

Merged
rozetko merged 4 commits from influx-docker into main 2 years ago
rozetko commented 2 years ago
Owner

This PR fixes the issue reported here: https://github.com/hastic/hastic/issues/110. The issue is that hastic inside Docker can't connect to Influx.

It happens because there is a default Prometheus config inside the Docker container which has priority over Influx config.

Changes:

  • config.example.toml: comment out everything except port. Now hastic won't use prometheus config from config.toml instead of Influx config from environment variables
  • config.rs: print all config values so that we can easily see such problems in the future (we were only printing environment variables before)

Other changes:

  • docker-compose.yml: rm network-mode: host because hastic doesn't need it
This PR fixes the issue reported here: https://github.com/hastic/hastic/issues/110. The issue is that hastic inside Docker can't connect to Influx. It happens because there is a default Prometheus config inside the Docker container which has priority over Influx config. Changes: - `config.example.toml`: comment out everything except `port`. Now hastic won't use `prometheus` config from `config.toml` instead of Influx config from environment variables - `config.rs`: print all config values so that we can easily see such problems in the future (we were only printing environment variables before) Other changes: - `docker-compose.yml`: rm `network-mode: host` because hastic doesn't need it
rozetko added 3 commits 2 years ago
rozetko requested review from glitch4347 2 years ago
rozetko requested review from vargburz 2 years ago
rozetko added 1 commit 2 years ago
rozetko merged commit abbadbc155 into main 2 years ago
rozetko deleted branch influx-docker 2 years ago
Owner

@rozetko damn bro this is cool. tnx

@rozetko damn bro this is cool. tnx

Reviewers

vargburz was requested for review 2 years ago
glitch4347 was requested for review 2 years ago
The pull request has been merged as abbadbc155.
Sign in to join this conversation.
Loading…
There is no content yet.