21 lines
443 B
Text
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 -%>
|