-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Frontend Rule evolution #437
Comments
@WTFKr0 the default behavior is |
Not really, I want to let the default container name but add a front-end rule to myapp.{domain} |
In this case, I think the most generic way would be to add default frontends rules for a traefik instance. |
Yes, and wildcards would be a very good friend ! |
I think we can close that, thanx ! |
I think about this and this is what i'm loogink for : I got a traefik instance listening docker events, with docker.domain=mydomain.org No Ive got 2 choices :
But I need abstraction of the default domain, cause I have multiple traefik instance with different default domains, and want same command to run container on each. I think the function getSubDomain need to be update to get a label instead of compute data from container name So I want to do with a new label :
Did you see what I want ? Thanx for reading |
This is EXACTLY what I need. Why was this closed? This would be really beneficial for those who are aiming at infrastructure-as-code with Terraform and trying to seperate domain/DNS/zones from frontend rules and want to keep their Docker stack/compose files "stateless" and not coupled to the environment/domain/DNS zone. I'm using Terraform to span up a Docker Swarm for 3 different workspaces / VPCs (dev, staging, production) and using Træfik on each of them....... The Let's say I want to use the same Docker stack file for 3 different DNS zones and 3 different Træfik instances... I would like to specify |
I know that when you create a Docker Swarm service the default frontend rule will be I could use I suggest to create a new variable Please re-open this @emilevauge |
Hi
I would like to tell the frontend rule like that :
traefik.frontend.rule=Host:myapp.${default_traefik_domain}
I need that cause I have some docker-compose templates shared between independant docker host. Each host has his own traefik container with his own domain name
Is that possible ?
The text was updated successfully, but these errors were encountered: