Document Docker port selection on multiple exposed ports

This commit is contained in:
Mathias Brodala 2024-07-29 10:22:04 +02:00 committed by GitHub
parent 0f4e72d522
commit 3ba53df005
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 6 deletions

View file

@ -66,10 +66,11 @@ With Docker, Traefik can leverage labels attached to a container to generate rou
```
!!! important "Traefik Connecting to the Wrong Port: `HTTP/502 Gateway Error`"
By default, Traefik uses the first exposed port of a container.
By default, Traefik uses the lowest exposed port of a container as detailed in
[Port Detection](../providers/docker.md#port-detection) of the Docker provider.
Setting the label `traefik.http.services.xxx.loadbalancer.server.port`
overrides that behavior.
overrides this behavior.
??? example "Specifying more than one router and service per container"