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

Frontends/Backends from multiple providers - is this supported? #966

Closed
miracle2k opened this issue Dec 13, 2016 · 5 comments · Fixed by #4372
Closed

Frontends/Backends from multiple providers - is this supported? #966

miracle2k opened this issue Dec 13, 2016 · 5 comments · Fixed by #4372

Comments

@miracle2k
Copy link

@miracle2k miracle2k commented Dec 13, 2016

  • I'd like to have a backend defined in my .toml file.
  • I would then like to add frontends via etcd.

I got the idea that this is supported, based on the CLI design and the fact that in the WebUI, it shows the routes from both; but in practice, I couldn't get it to work. Should it work, or do I not need to investigate?

@cyrilgdn

This comment has been minimized.

Copy link

@cyrilgdn cyrilgdn commented Jan 2, 2017

Interested in this issue as well, I tried to use both consul and consul_catalog but can't create a consul frontend which use a consul_catalog backend.

@srgrn

This comment has been minimized.

Copy link

@srgrn srgrn commented Jan 5, 2017

I also seem to have a similar problem.
according to the image on the site it seems like docker backend is connected to the file frontend, but i can't seem to do this.

@jmahowald

This comment has been minimized.

Copy link

@jmahowald jmahowald commented Feb 7, 2017

While I agree that it would be nice to be a top level feature, I do think you can do this on your own with confd.

https://github.com/rawmind0/rancher-traefik

Uses confd to scan rancher metadata and then generates the toml.

This setting:
https://github.com/rawmind0/rancher-traefik/blob/master/root/opt/tools/confd/etc/conf.d/rules.toml.toml

Get's confd to listen to changes and updates the (admittedly a bit hard to read) template

https://github.com/rawmind0/rancher-traefik/blob/master/root/opt/tools/confd/etc/templates/rules.toml.tmpl

@denysvitali

This comment has been minimized.

Copy link

@denysvitali denysvitali commented Sep 3, 2018

Same issue here with consul_catalog (as a backend) and file (as a frontend). Is it possible to connect the two so that I can create a frontend as a [frontends] entry, and keep the provided backend from consul_catalog?

@kajmagnus

This comment has been minimized.

Copy link

@kajmagnus kajmagnus commented Dec 31, 2018

I have a similar use case: I'd like to add backends dynamically via the Docker provider. And I'm going to have a list of frontend Host: .... rules, in a .toml file auto generatedby the app server(s), which I'd like Traefik to watch and auto reload. (No consul or etcd in my case; that'd be overkill :- ))

So, dynamic backends via the Docker provider. And dynamic frontends via the File provider.

(For now I'm just hardcoding the backend server in a file, for the File provider, since for the moment there's just one backend app server.)

@traefiker traefiker added this to the next milestone Jan 15, 2019
@containous containous locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
9 participants
You can’t perform that action at this time.