2025-03-25 14:25:30 +01:00
|
|
|
---
|
|
|
|
services:
|
|
|
|
telegraf:
|
2025-03-25 16:04:14 +01:00
|
|
|
image: docker.sunet.se/eduid/telegraf:<%= @version %>
|
2025-03-25 14:25:30 +01:00
|
|
|
container_name: telegraf
|
|
|
|
|
|
|
|
hostname: <%= @server_fqdn %>
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- '/etc/ssl:/etc/ssl'
|
|
|
|
- '/dev/log:/dev/log'
|
|
|
|
- '/var/log:/var/log'
|
2025-03-25 16:04:14 +01:00
|
|
|
- '<%= @service_dir %>:<%= @service_dir %>'
|
2025-03-25 14:25:30 +01:00
|
|
|
- '/var/run/utmp:/var/run/utmp:ro'
|
|
|
|
|
2025-04-02 13:24:35 +02:00
|
|
|
<% if @ports != '' -%>
|
2025-03-25 14:25:30 +01:00
|
|
|
ports:
|
2025-04-02 13:24:35 +02:00
|
|
|
<% @ports.each do |port| -%>
|
|
|
|
- <%= port %>
|
|
|
|
<% end -%>
|
2025-03-25 16:04:14 +01:00
|
|
|
<% end -%>
|