traefik-cloudflare-companion
tiredofit/traefik-cloudflare-companion:latest
https://hub.docker.com/r/tiredofit/traefik-cloudflare-companion
bridge
sh
false
https://github.com/tiredofit/docker-traefik-cloudflare-companion
https://github.com/tiredofit/docker-traefik-cloudflare-companion
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)
Network:DNS
https://raw.githubusercontent.com/docker-library/docs/a6cc2c5f4bc6658168f2a0abbb0307acaefff80e/traefik/logo.png
--restart unless-stopped
2
unix://var/run/docker.sock
domain.tld
domain2.tld
TRUE
domain.tld
TRUE
2
TRUE
http://traefik-ip:traefik-webui-port
/var/run/docker.sock
FALSE
TRUE