Hi all,
i'm new to traefik (just used for some test), but after some readingsI saw that it's possible
to route and expose may ports of a single container,
with multiple routing lines.
But seems a bit a pain understandt if is possible to route mixed type of protocols
that respond at the same container/subdomain.
This seems to be functional
networks:
proxy:
external: true
services:
app:
image: myimage
container_name: app
restart: unless-stopped
networks:
- proxy
ports:
- 8080:8080
- 5000:5000
labels:
- "traefik.enable=true"
- "traefik.http.routers.app1.rule=Host(`myapp.domain.com`)"
- "traefik.http.routers.app1.entrypoints=ep1"
- "traefik.http.routers.app1.service=svc1"
- "traefik.http.services.svc1.loadbalancer.server.port=8080"
- "traefik.http.routers.app2.rule=Host(`myapp.domain.com`)"
- "traefik.http.routers.app2.entrypoints=ep2"
- "traefik.http.routers.app2.service=svc2"
- "traefik.http.services.svc2.loadbalancer.server.port=5000"
- traefik.docker.network=proxy
But, if i have a container with an 8080 for http connection, a 5000 over TCP and a 5001 over UDP (not so difficult with the new services like Nvidia CloudXR and other similar services), what type of labels sequence i need to use?
tnks in advance for every seconds spent to read this post.