I am getting the hang of traefik, thanks to all the wonderfull help i get here.
Just one more question
all my containers with a single port are working if I define the single port like this in the docker-compose of the container
- 'traefik.http.services."{{ DOCKER_NAME }}".loadbalancer.server.port=80'
but what i am now struggeling with are the containers that are using more than 1 port.
If i wanted to add for example port 80 and 81 to a docker-compose file, how do I do that?
- 'traefik.http.services."whoami".loadbalancer.server.port=80'
- 'traefik.http.services."whoami".loadbalancer.server.port=81'
- I know whoami does not run on port 81, but it is just an example
does not work, because traefik will only look at the last port defined in the docker-compose file
I searched topics on this community but most of them are for http and https ports so that is a different url
I want multiple ports to use just the http connection for example