prometheus/templates/compose/cloudflare.yml.j2
2024-05-24 11:05:59 +02:00

23 lines
603 B
Django/Jinja
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '3.7'
networks:
{{ prometheus_docker_network }}:
external: true
services:
cloudflare-exporter:
container_name: cloudflare-exporter
image: ghcr.io/lablabs/cloudflare_exporter:latest
restart: unless-stopped
environment:
- CF_API_TOKEN={{ cloudflare_api_key }}
- CF_API_EMAIL={{ cloudflare_api_email }}
labels:
com.centurylinklabs.watchtower.enable: {{ cloudflare_exporter_watchtower_enable | default('true') }}
ports:
- 8082:8080
networks:
- {{ prometheus_docker_network }}
dns:
- "{{ prometheus_cloudflare_dns }}"