--- networks: infra_dev_net: external: true volumes: influxdbv2: driver: local services: influxdb: image: influxdb env_file: - influxv2.env volumes: # Mount for influxdb data directory and configuration - influxdbv2:/var/lib/influxdb2:rw networks: infra_dev_net: ipv4_address: 10.99.23.41 ports: - "8086:8086" telegraf: container_name: telegraf build: dockerfile: Dockerfile.telegraf image: docker-registry1.in.thelinuxpro.net:5000/tlp/telegraf:latest depends_on: - influxdb volumes: # Mount for telegraf config - ./telegraf/mytelegraf.conf:/etc/telegraf/telegraf.conf:ro networks: infra_dev_net: ipv4_address: 10.99.23.42 env_file: - influxv2.env