traefik-cloudflare-companion
traefik-cloudflare-companion
Aplicación Docker from Exes' Repository
Visión general
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)
Argumentos en tiempo de ejecución
- Red
bridge- Concha
sh- Privilegiado
- false
- Parámetros adicionales
--restart unless-stopped
Configuración de plantillas
TRAEFIK_VERSIONVariable
- Valor
- 2
DOCKER_ENTRYPOINTVariable
- Valor
- unix://var/run/docker.sock
CF_TOKENVariable
DOMAIN1Variable
- Valor
- domain.tld
DOMAIN2Variable
- Valor
- domain2.tld
DOMAIN1_ZONE_IDVariable
DOMAIN1_PROXIEDVariable
- Valor
- TRUE
DOMAIN2_ZONE_IDVariable
TARGET_DOMAINVariable
- Valor
- domain.tld
DOMAIN1_PROXIEDVariable
- Valor
- TRUE
TRAEFIK_VERSIONVariable
- Valor
- 2
ENABLE_TRAEFIK_POLLVariable
- Valor
- TRUE
TRAEFIK_POLL_URLVariable
- Valor
- http://traefik-ip:traefik-webui-port
DockerPathro
- Objetivo
- /var/run/docker.sock
- Valor
- /var/run/docker.sock
DRY_RUNVariable
- Por defecto
- FALSE
- Valor
- FALSE
REFRESH_ENTRIESVariable
- Por defecto
- FALSE
- Valor
- TRUE
Categorías
Descargar estadísticas
14,366,020
Descargas totales
165,174
Este mes
153,704
Media / Mes
Descargas totales a lo largo del tiempo
Cargando gráfico...
Detalles
Repositorio
tiredofit/traefik-cloudflare-companion:latestÚltima actualización2025-04-30
Visto por primera vez2022-09-29
Ejecute traefik-cloudflare-companion en Unraid.
traefik-cloudflare-companion se encuentra en Community Apps para Unraid OS. Explore Unraid para crear un servidor doméstico flexible, un NAS o un laboratorio doméstico.