grafana-influx: add token via encrypted env
This commit is contained in:
parent
2aef0c60ff
commit
8bb58b4cc6
Binary file not shown.
|
|
@ -48,6 +48,7 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- mosquitto
|
- mosquitto
|
||||||
- influxdb
|
- influxdb
|
||||||
|
env_file: .env
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
influxdb-data:
|
influxdb-data:
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
[[outputs.influxdb]]
|
[[outputs.influxdb_v2]]
|
||||||
urls = ["http://influxdb:8086"]
|
urls = ["http://influxdb:8086"]
|
||||||
database = "simplecloud"
|
bucket = "simplecloud"
|
||||||
skip_database_creation = true
|
organization = "DES"
|
||||||
|
token = "$TOKEN"
|
||||||
[[inputs.mqtt_consumer]]
|
[[inputs.mqtt_consumer]]
|
||||||
servers = ["tcp://mosquitto:1883"]
|
servers = ["tcp://mosquitto:1883"]
|
||||||
topics = [
|
topics = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue