traefik-cloudflare-companion
traefik-cloudflare-companion
Docker-Anwendung from Exes' Repository
Übersicht
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)
Laufzeit-Argumente
- Netzwerk
bridge- Shell
sh- Privilegiert
- false
- Extra Params
--restart unless-stopped
Konfiguration der Vorlage
TRAEFIK_VERSIONVariable
- Wert
- 2
DOCKER_ENTRYPOINTVariable
- Wert
- unix://var/run/docker.sock
CF_TOKENVariable
DOMAIN1Variable
- Wert
- domain.tld
DOMAIN2Variable
- Wert
- domain2.tld
DOMAIN1_ZONE_IDVariable
DOMAIN1_PROXIEDVariable
- Wert
- TRUE
DOMAIN2_ZONE_IDVariable
TARGET_DOMAINVariable
- Wert
- domain.tld
DOMAIN1_PROXIEDVariable
- Wert
- TRUE
TRAEFIK_VERSIONVariable
- Wert
- 2
ENABLE_TRAEFIK_POLLVariable
- Wert
- TRUE
TRAEFIK_POLL_URLVariable
- Wert
- http://traefik-ip:traefik-webui-port
DockerPathro
- Ziel
- /var/run/docker.sock
- Wert
- /var/run/docker.sock
DRY_RUNVariable
- Standard
- FALSE
- Wert
- FALSE
REFRESH_ENTRIESVariable
- Standard
- FALSE
- Wert
- TRUE
Kategorien
Statistik herunterladen
14,366,020
Downloads insgesamt
165,174
Dieser Monat
153,704
Durchschnittlich / Monat
Gesamte Downloads im Laufe der Zeit
Tabelle laden...
Einzelheiten
Repository
tiredofit/traefik-cloudflare-companion:latestZuletzt aktualisiert2025-04-30
Erstmals gesehen2022-09-29
Führen Sie traefik-cloudflare-companion auf Unraid aus.
traefik-cloudflare-companion ist gelistet in Community Apps für Unraid OS. Erkunden Sie Unraid, um einen flexiblen Heimserver, ein NAS oder ein Heimlabor aufzubauen.