Hi,
I'm using Traefik latest (v1.7.12) to have https with Let's Encrypt certs for my docker containers created with docker-compose. It works nice for more than a year now.
I have a docker container with 3 ports and I would like to make all 3 ports available via Traefik.
The docker container is Kodi Headless, here is the docker-compose:
Container is created fine, and I can access Kodi webUI with https://kodi.domain.net
However, I'm missing access to ports 9090 (websocket) and 9777/udp. For some reason, I can't make some connection from remote locations to this Kodi docker (like Sonarr's Connect option). It works when I use internal network address, the IP directly, bypassing domain name.
Can you help me please, what do I need to add to Traefik labels section to have ports 9090 and 9777/udp accessible too? Maybe remove something from the labels listed? It works perfectly for my other docker containers like Plex, Deluge, Sonarr, Radarr, etc.
This ranks really high in Google for configuring a container with multiple ports. Segment labels don't seem to exist in v2 so you have to configure it differently.
Basically you need to configure your container with labels that reference multiple services under a single service. The names of the services need not map directly to the Docker service name and will be created in Traefik using the communication you specify.
Here's an example configuration (from the above SO post) for whoami which can be accessed from both an http and https entry point where the port is individually configurable for each