19 lines
405 B
Text
19 lines
405 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 %>
|
|
<% end -%>
|