Dockercompose qui embarque les nouvelles variables d'environnement
Fichier qui corresponds à mon besoin avec un influDB 2.7.4 installé séparément. Ce qui va être utile est surtout : - INFLUXDB_URL=http://url_or_ip_infludb:8086 - INFLUXDB_TOKEN=token_of_the_bucket - INFLUXDB_SKIP_DATABASE_CREATION=true - INFLUXDB_ORG=Organisation_of_your_influ - INFLUXDB_BUCKET=Name_of_the_bucket
This commit is contained in:
@@ -1,29 +1,18 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
influxdb:
|
|
||||||
image: influxdb:1.8
|
|
||||||
hostname: influxdb_test
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
INFLUX_DB: fbx
|
|
||||||
INFLUXDB_USER: fbx
|
|
||||||
INFLUXDB_PASSWORD: fbx
|
|
||||||
|
|
||||||
fbx_telegraf:
|
fbx_telegraf:
|
||||||
image: uzurka/freebox-telegraf
|
image: freebox-exporter-telegraf:latest
|
||||||
container_name: container_name
|
container_name: freebox-exporter
|
||||||
hostname: hostname
|
hostname: hostname
|
||||||
environment:
|
environment:
|
||||||
|
- TELEGRAF_AGENT_INTERVAL=10s
|
||||||
|
- TELEGRAF_SCRIPT_TIMEOUT=5s
|
||||||
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin:/usr/local:/usr/src
|
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin:/usr/local:/usr/src
|
||||||
- TZ=CET
|
- TZ=CET
|
||||||
- INFLUXDB_URL=http://influxdb_container_name:port
|
- INFLUXDB_URL=http://url_or_ip_infludb:8086
|
||||||
- INFLUXDB_DATABASE=fbx
|
- INFLUXDB_TOKEN=token_of_the_bucket
|
||||||
- INFLUXDB_SKIP_DATABASE_CREATION=false
|
- INFLUXDB_SKIP_DATABASE_CREATION=true
|
||||||
- INFLUXDB_USERNAME=fbx
|
- INFLUXDB_ORG=Organisation_of_your_influ
|
||||||
- INFLUXDB_PASSWORD=fbx
|
- INFLUXDB_BUCKET=Name_of_the_bucket
|
||||||
- ARGS=SPHDIWX4
|
- ARGS=
|
||||||
ports:
|
restart: unless-stopped
|
||||||
- 9125:8125/udp
|
|
||||||
- 9092:8092/udp
|
|
||||||
- 9094:8094
|
|
||||||
restart: unless-stopped
|
|
Reference in New Issue
Block a user