diff --git a/docker-compose.yml b/docker-compose.yml index eb84dc0..1b65c79 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file