version: '3' services: telegraf: image: telegraf container_name: telegraf restart: always volumes: - ./mytelegraf.conf:/etc/telegraf/telegraf.conf