version: "3" services: grafana: image: grafana/grafana:7.1.5 networks: - influx environment: GF_SERVER_ROOT_URL: https://grafana.trygvis.io ports: - "3000:3000" volumes: - {{ grafana_basedir }}:/var/lib/grafana idb: image: influxdb:1.8.1 ports: - "8086:8086" networks: - influx volumes: - /home/trygvis/dev/io.trygvis/infra/docker/birgitte/ops/influxdb.conf:/etc/influxdb/influxdb.conf:ro - /pool0/ops/influxdb:/var/lib/influxdb telegraf: image: telegraf:1.15 networks: - influx volumes: - {{ etc_dir }}/telegraf.conf:/etc/telegraf/telegraf.conf:ro - {{ etc_dir }}/unifi/UBNT-MIB:/root/.snmp/mibs/UBNT-MIB:ro - {{ etc_dir }}/unifi/UBNT-UniFi-MIB:/root/.snmp/mibs/UBNT-UniFi-MIB:ro environment: INFLUX_URL: "http://idb:8086" command: - sh - -c - "sed -i -e 's/main/main non-free/' /etc/apt/sources.list && apt update && apt install --install-recommends=no -y snmp-mibs-downloader && exec telegraf" networks: influx: