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

Running Traefik with Docker 1.12 Swarm Mode #504

Closed
timchunght opened this issue Jul 10, 2016 · 9 comments
Closed

Running Traefik with Docker 1.12 Swarm Mode #504

timchunght opened this issue Jul 10, 2016 · 9 comments
Assignees
Labels

Comments

@timchunght
Copy link

timchunght commented Jul 10, 2016

What I am attempting to do is run Traefik as a docker service in the new swarm mode and have it auto discover all the other services.

docker service create --name traefik -p 80:80 -p 8080:8080 traefik 

However, without the ability to bind the docker socket in swarm mode, what can we do to have traefik do auto service discovery for all the other services in docker swarm. Thanks

@timchunght
Copy link
Author

timchunght commented Jul 10, 2016

My goal is to run traefik as a global service in docker swarm and have it communicate with the docker swarm API and use the label of the service (this use case is unique to docker 1.12) in docker swarm for hostname matching.

Use case:
traefik on port 80

service 1 created and scaled via docker swarm with label (this label is only visible as part of the service and not individual containers)

https://docs.docker.com/engine/reference/commandline/service_create/

@vdemeester vdemeester added the kind/enhancement a new or improved feature. label Jul 10, 2016
@emilevauge
Copy link
Member

@timchunght for sure, we will make traefik compliant with Docker swarm mode :)

@vdemeester vdemeester self-assigned this Jul 11, 2016
@vdemeester
Copy link
Contributor

We are watching closely the 1.12 feature and how they will evolve between 1.12 and 1.13, but we're definitely going to support that 👼 😉

@katopz
Copy link

katopz commented Jul 13, 2016

WoW, Can't wait! 👯 🎵

@timchunght
Copy link
Author

@vdemeester is there any timeline on this feature. Really excited and looking forward to it! Thanks!

@PanJ
Copy link

PanJ commented Aug 4, 2016

I'm new to traefik but searching for reverse proxy solution in docker swarm mode. I think, in the meantime, we can use file backend and route them using domain name with attached network. Swarm already handles service discovery and load balancing.

@diegofernandes
Copy link
Contributor

Im writing a code to support that, lets what happen.

emilevauge added a commit that referenced this issue Sep 27, 2016
#504 Initial support for Docker 1.12 Swarm Mode
@emilevauge
Copy link
Member

emilevauge commented Sep 28, 2016

Fixed by #504 #602

@regner
Copy link
Contributor

regner commented Sep 28, 2016

Think you mean fixed by #602 ;)

@traefik traefik 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.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants