improved docker-compose example

This commit is contained in:
2023-06-25 01:10:58 +02:00
parent ae7d68be62
commit d4ec50d169

View File

@ -1,24 +1,23 @@
version: "3"
services:
influxdb:
image: influxdb:1.8
hostname: influxdb_test
restart: always
environment:
INFLUX_DB: telegraf_test
INFLUX_DB: fbx
INFLUXDB_USER: fbx
INFLUXDB_PASSWORD: fbx
fbx_telegraf:
image: freebox-exporter-test
container_name: fbx_telegraf_test
hostname: fbx_telegraf_test
image: uzurka/freebox-telegraf
container_name: container_name
hostname: hostname
environment:
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin:/usr/local:/usr/src
- TZ=CET
- INFLUXDB_URL=http://influxdb_test:8086
- INFLUXDB_DATABASE=telegraf_test
- INFLUXDB_URL=http://influxdb_container_name:port
- INFLUXDB_DATABASE=fbx
- INFLUXDB_SKIP_DATABASE_CREATION=false
- INFLUXDB_USERNAME=fbx
- INFLUXDB_PASSWORD=fbx