--- version: "3.9" services: smtp-gateway: build: smtp-gateway expose: - "8081" env_file: - .env.gateway telegraf: image: telegraf:latest depends_on: - "influxdb" env_file: .env.influxdb volumes: - ./files/telegraf-config/telegraf.conf:/etc/telegraf/telegraf.conf:ro - ./files/collectd.auth:/etc/collectd/collectd.auth:ro - ./files/types.db:/usr/share/collectd_types.db:ro - ./files/customtypes.db:/usr/share/collectd_custom_types.db:ro ports: - "25826:25826/udp" networks: - default influxdb: image: influxdb:latest env_file: .env.influxdb depends_on: - "smtp-gateway" volumes: - influxdb-storage:/var/lib/influxdb2 ports: - "127.0.0.1:8086:8086" networks: - default grafana: image: grafana/grafana:latest environment: - GF_INSTALL_PLUGINS=grafana-clock-panel volumes: - grafana-storage:/var/lib/grafana depends_on: - "influxdb" ports: - 127.0.0.1:3000:3000 networks: - default volumes: grafana-storage: influxdb-storage: networks: default: