tiredofit / docker-traefik-cloudflare-companion

Automatically Create CNAME records for containers served by Traefik

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Traefik V2 labels

watling777 opened this issue · comments

Would it be possible to trigger a CNAME creation/update based on the traefik.http.routers.router1.rule=Host(`traefik.example.com`) label? The traefik.frontend.rule label is not used in version 2 of Traefik

Absolutely. I've been using a version privately that supports this and just committed and available on Docker Hub tagged as 4.0 or latest.

Make sure you add an environment variable to TRAEFIK_VERSION=2 for it to work :)

Thanks, It works perfect for me!