traefik-cloudflare-companion

traefik-cloudflare-companion

Docker 应用程序 from Exes' Repository

概述

This builds a Docker image to automatically update and create Cloudflare DNS records upon container start. A time saver if you are regularly moving containers around to different systems. This will allow you to set multiple zone's you wish to update. IMPORTANT: Discovery cloudflare-companion supports three different discovery mode: Docker, Docker Swarm, and Traefik Polling. The Docker discovery mode is the only mode enabled by default. Once matching hosts are discovered, cloudflare-companion will add or update CNAMEs in CloudFlare that point to the configured TARGET_DOMAIN. Docker cloudflare-companion will discover running Docker containers by searching for supported labels. The supported labels are: Traefik Version Single Host Multiple Host 1 traefik.normal.frontend.rule=Host:example1.domain.tld traefik.normal.frontend.rule=Host:example1.domain.tld,example2.domain.tld 2 traefik.http.routers.example.rule=Host(`example1.domain.tld`) ``traefik.http.routers.example.rule=Host(example1.domain.tld) Docker Swarm Docker Swarm mode can be enabled by setting the environment variable SWARM_MODE=TRUE. This will cause cloudflare-companion to discover running Docker Swarm services with supported labels. The supported labels are: Traefik Version Single Host Multiple Host 1 traefik.normal.frontend.rule=Host:example1.domain.tld traefik.normal.frontend.rule=Host:example1.domain.tld,example2.domain.tld 2 traefik.http.routers.example.rule=Host(`example1.domain.tld`) ``traefik.http.routers.example.rule=Host(example1.domain.tld)

运行时参数

网络
bridge
外壳
sh
特权
false
额外参数
--restart unless-stopped

模板配置

TRAEFIK_VERSIONVariable
价值
2
DOCKER_ENTRYPOINTVariable
价值
unix://var/run/docker.sock
CF_TOKENVariable
DOMAIN1Variable
价值
domain.tld
DOMAIN2Variable
价值
domain2.tld
DOMAIN1_ZONE_IDVariable
DOMAIN1_PROXIEDVariable
价值
TRUE
DOMAIN2_ZONE_IDVariable
TARGET_DOMAINVariable
价值
domain.tld
DOMAIN1_PROXIEDVariable
价值
TRUE
TRAEFIK_VERSIONVariable
价值
2
ENABLE_TRAEFIK_POLLVariable
价值
TRUE
TRAEFIK_POLL_URLVariable
价值
http://traefik-ip:traefik-webui-port
DockerPathro
目标
/var/run/docker.sock
价值
/var/run/docker.sock
DRY_RUNVariable
默认值
FALSE
价值
FALSE
REFRESH_ENTRIESVariable
默认值
FALSE
价值
TRUE

下载统计数据

14,366,020
下载总数
165,174
本月
153,704
平均每月

长期下载总量

加载图表...

详细信息

存储库
tiredofit/traefik-cloudflare-companion:latest
最后更新2025-04-30
初见2022-09-29

在Unraid 上运行 traefik-cloudflare-companion 。

traefik-cloudflare-companion 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。