--- services: telegraf: image: docker.sunet.se/eduid/telegraf:<%= @version %> container_name: telegraf environment: - INFLUXDB2_TOKEN=<%= @influxdb2_token %> - INFLUXDB2_ORG=<%= @influxdb2_org %> - INFLUXDB2_BUCKET=<%= @influxdb2_bucket %> - INFLUXDB2_BUCKET_PROXY=<%= @influxdb2_bucket_proxy %> <% if @influx2_token != 'NOT_SET_IN_HIERA' -%> - INFLUX2_TOKEN=<%= @influx2_token %> <% end -%> hostname: <%= @server_fqdn %> volumes: - '/etc/ssl:/etc/ssl' - '/dev/log:/dev/log' - '/var/log:/var/log' - '<%= @service_dir %>:<%= @service_dir %>' - '/var/run/utmp:/var/run/utmp:ro' <% if @ports != [] -%> ports: - <%= @ports %> <% end -%>