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
Traefik dashboard only works with overlay network created outside of stack deploy for swarm. #2806
Comments
When you deploy a stack using Two options:
or
edit: hint: btw, using the host-mode port binding can save you network roundtrips when traefik is deploy as global service. |
I'll close this issue, because I think the question is answered. |
Hey @ldez I don't think the question is answered because what I'm pointing out is the inconsistencies in which Traefik is handling network names. @salzig, thanks for the reply. I know that when creating a network with The only time Traefik's dashboard is accessible is if I define the network externally, which I can do, but I'm just trying to point out that Traefik's routing services and Portainer should not be working if what you proposed to be true, that the network in the composer file has to be defined with |
@tannerchung let's encrypt didn't work for this config, do i still need consul to store k/v for acme, i only run traefik on manager, and i have a single manager |
You can name the network you create with the
That way it won't be |
Do you want to request a feature or report a bug?
bug
What did you do?
I'm using
stack deploy
to use Traefik as a load balancer and the services are not responding to the defined networks consistently.I have a docker compose file where I define
and my defined Traefik service has networks defined
and under deploy
You'll see below in the yml below, I have Portainer defined along side Traefik. I'm unable to reach Traefik unless I create a
proxy
network from the command line, even through Traefik is referring toproxy_proxy
, which was created when running thedocker stack deploy
command.I'm able to reach Portainer without the
proxy
network thoughI tested to see maybe if
proxy_proxy
was a useless network but Portainer won't load with just the externalproxy
network defined OR if I defined the network in the yml file like:so that both services just rely on the
proxy
network that was created from the command lineWhat did you expect to see?
I expect to be able to see the Traefik dashboard at traefik.example.com OR I expect Portainer not to work either.
What did you see instead?
A Gateway Timeout error for Traefik and Portainer working
Output of
traefik version
: (What version of Traefik are you using?)What is your environment & configuration (arguments, toml, provider, platform, ...)?
If applicable, please paste the log output in debug mode (
--debug
switch)The text was updated successfully, but these errors were encountered: