Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude certain containers based on docker-compose label #57

Open
Northguy opened this issue Nov 26, 2021 · 2 comments
Open

Exclude certain containers based on docker-compose label #57

Northguy opened this issue Nov 26, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@Northguy
Copy link

Description of the feature
It is possible to exclude certain subdomain trees from Cloudflare companion by adding these to the environment variables of Cloudflare companion like

DOMAIN1_EXCLUDED_SUB_DOMAINS (optional specify sub domain trees to be ignored in lables) ex: DOMAIN1_EXCLUDED_SUB_DOMAINS=int would not create a CNAME for *.int.example.com

Would it also be possible to exclude specific containers from being added to Cloudflare by adding an additional cloudflare-exclude=yes label?

Motivation: I am using a split DNS and I would like Traefik to listen to all subdomains on my LAN (hence all containers have a traefik router label applied), but I only want a few of the containers actually published as subdomain on cloudflare.

@Northguy Northguy added the enhancement New feature or request label Nov 26, 2021
@proddy
Copy link

proddy commented Nov 26, 2021

I would benefit from this too. So +1

@elliotmatson
Copy link

Another way to potentially do this would be filtering by Traefik Entrypoint, that's how I'm currently designating which containers are accessible locally vs publicly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants