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

Traefik ignoring container listening in more than one TCP port #734

Closed
rogeriollacerda opened this issue Oct 14, 2016 · 3 comments
Closed

Comments

@rogeriollacerda
Copy link

Hi,

I'm using Traefik with a Marathon backend. Some containers, are using more than one TCP port (1 for production access and another one for healthcheck, for example). Why traefik can't use portIndex "0" as default port? When traefik read more than one port, It ignores application and doesn't include in frontend and backend.

@emilevauge
Copy link
Member

@rogeriollacerda you have to specify the port with the label traefik.port=80.

@gomes
Copy link
Contributor

gomes commented Oct 14, 2016

That's not a good decision, Marathon assumes port0 as default option for health checks and Marathon always assumes that you have 1 port available, so PORT0 is always a default option.

"Each host port value is exposed to the running application instance via environment variables $PORT0, $PORT1, etc. Each Marathon application is given a single port by default, so $PORT0 is always available. "
https://mesosphere.github.io/marathon/docs/ports.html

So you have to assume a default when you have two or more options.

@emilevauge
Copy link
Member

@gomes make a PR

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

No branches or pull requests

4 participants