version: "3" services: telegraf: image: telegraf:1.15 privileged: true network_mode: host volumes: - /etc/docker-service/ops-agent/telegraf.conf:/etc/telegraf/telegraf.conf:ro - /var/run/docker.sock:/var/run/docker.sock:ro - /sys:/rootfs/sys:ro - /proc:/rootfs/proc:ro - /etc:/rootfs/etc:ro {% for mp in telegraf_extra_mount_points|default([]) %} - {{ mp }}:{{ mp }}:ro {% endfor %} command: - sh - -c - apt update && apt install -y --install-recommends=no smartmontools; exec telegraf environment: INFLUX_URL: "http://birgitte.vpn.trygvis.io:8086" INFLUX_SKIP_DATABASE_CREATION: "true" HOST_PROC: "/rootfs/proc" HOST_SYS: "/rootfs/sys" HOST_ETC: "/rootfs/etc" HOST_MOUNT_PREFIX: "/rootfs"