'Traefik - Load Balancing Port

I have just started playing with Traefik and I have it setup in docker which is working well.

I route multiple containers through a vpn container...eg: net=container:vpn

I added the labels for each routed container into the vpn configuration and the rest of the containers work as intended, but 2 containers require the same port:

traefik.http.services.name1.loadbalancer.server.port=8080

traefik.http.services.name2.loadbalancer.server.port=8080

I don't expose the ports for each container, so I am unable to remap them, is there a way to make this work?



Solution 1:[1]

Could I see the docker compose file if there is one? I'm not sure I understand why remapping is not possible.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 CocompleteHippopotamus