2025-03-25 14:25:30 +01:00
|
|
|
---
|
|
|
|
services:
|
|
|
|
telegraf:
|
|
|
|
image: docker.sunet.se/test-my-eid:<%= @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' -%>
|
2025-03-25 14:32:51 +01:00
|
|
|
- INFLUX2_TOKEN=<%= @influx2_token %>
|
2025-03-25 14:25:30 +01:00
|
|
|
<% 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'
|
|
|
|
|
|
|
|
ports:
|
|
|
|
- <%= @ports %>
|