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

25 lines
689 B
Text
Raw Normal View History

---
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' -%>
- INFLUX2_TOKEN=<%= @influx2_token %>
<% 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 %>