eid-ops/global/overlay/etc/puppet/modules/eid/templates/telegraf2/docker-compose.yml.erb

21 lines
443 B
Text

---
services:
telegraf:
image: docker.sunet.se/eduid/telegraf:<%= @version %>
container_name: telegraf
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.each do |port| -%>
- <%= port %>
<% end -%>
<% end -%>