--- networks: infra_dev_net: esternal: true volumes: influxdbv2: driver: local services: influxdb: image: influxdb:2.6-alpine 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: image: telegraf:1.25-alpine 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