traefik-cloudflare-companion
traefik-cloudflare-companion
Application Docker from Exes' Repository
Vue d'ensemble
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)
Arguments d'exécution
- Réseau
bridge- Coquille
sh- Privilégié
- false
- Paramètres supplémentaires
--restart unless-stopped
Configuration du modèle
TRAEFIK_VERSIONVariable
- Valeur
- 2
DOCKER_ENTRYPOINTVariable
- Valeur
- unix://var/run/docker.sock
CF_TOKENVariable
DOMAIN1Variable
- Valeur
- domain.tld
DOMAIN2Variable
- Valeur
- domain2.tld
DOMAIN1_ZONE_IDVariable
DOMAIN1_PROXIEDVariable
- Valeur
- TRUE
DOMAIN2_ZONE_IDVariable
TARGET_DOMAINVariable
- Valeur
- domain.tld
DOMAIN1_PROXIEDVariable
- Valeur
- TRUE
TRAEFIK_VERSIONVariable
- Valeur
- 2
ENABLE_TRAEFIK_POLLVariable
- Valeur
- TRUE
TRAEFIK_POLL_URLVariable
- Valeur
- http://traefik-ip:traefik-webui-port
DockerPathro
- Cible
- /var/run/docker.sock
- Valeur
- /var/run/docker.sock
DRY_RUNVariable
- Défaut
- FALSE
- Valeur
- FALSE
REFRESH_ENTRIESVariable
- Défaut
- FALSE
- Valeur
- TRUE
Catégories
Télécharger les statistiques
14,366,020
Total des téléchargements
165,174
Ce mois-ci
153,704
Moyenne / Mois
Total des téléchargements au fil du temps
Chargement du graphique...
Détails
Référentiel
tiredofit/traefik-cloudflare-companion:latestDernière mise à jour2025-04-30
Première vue2022-09-29
Exécutez traefik-cloudflare-companion sur Unraid.
traefik-cloudflare-companion est listé dans Community Apps pour Unraid OS. Explorez Unraid pour créer un serveur domestique flexible, un NAS ou un laboratoire domestique.