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:
timo
2024-01-26 20:26:36 +01:00
parent f434ae13fd
commit 71862ed5d5

View File

@@ -1,29 +1,18 @@
version: "3"
services:
influxdb:
image: influxdb:1.8
hostname: influxdb_test
restart: always
environment:
INFLUX_DB: fbx
INFLUXDB_USER: fbx
INFLUXDB_PASSWORD: fbx
fbx_telegraf:
image: uzurka/freebox-telegraf
container_name: container_name
image: freebox-exporter-telegraf:latest
container_name: freebox-exporter
hostname: hostname
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
- TZ=CET
- INFLUXDB_URL=http://influxdb_container_name:port
- INFLUXDB_DATABASE=fbx
- INFLUXDB_SKIP_DATABASE_CREATION=false
- INFLUXDB_USERNAME=fbx
- INFLUXDB_PASSWORD=fbx
- ARGS=SPHDIWX4
ports:
- 9125:8125/udp
- 9092:8092/udp
- 9094:8094
restart: unless-stopped
- 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
- ARGS=
restart: unless-stopped