Hello everybody,
First I am running traefik with usual ports (80/443) and a docker container with the following labels:
version: "3.7"
services:
traefik:
container_name: traefik
image: traefik:livarot
restart: always
- --entryPoints.http.address=:80
- --entryPoints.https.address=:443
.........................
web:
image:.............
labels:
- "traefik.enable=true"
- "traefik.http.routers.web-rtr.entrypoints=https"
- "traefik.http.routers.web-rtr.rule=Host(`test.abc.net`)"
- "traefik.http.routers.web-rtr.tls=true"
- "traefik.http.routers.web-rtr.service=web-svc"
- "traefik.http.services.web-svc.loadbalancer.server.port=8080"
Everything is fine. I get connection to the container.
Now I want to use the URL with a especially port like "test.abc.net:9999" as browser input.
So I have added an new entrypoint to traefik and change the entrypoint of the container like:
version: "3.7"
services:
traefik:
container_name: traefik
image: traefik:livarot
restart: always
- --entryPoints.http.address=:80
- --entryPoints.https.address=:443
- --entryPoints.web.address=:9999
.........................
web:
image:.............
labels:
- "traefik.enable=true"
- "traefik.http.routers.web-rtr.entrypoints=web"
- "traefik.http.routers.web-rtr.rule=Host(`test.abc.net`)"
- "traefik.http.routers.web-rtr.tls=true"
- "traefik.http.routers.web-rtr.service=web-svc"
- "traefik.http.services.web-svc.loadbalancer.server.port=8080"
It does not matter if I use "test.abc.net" or "test.abc.net:9999" as browser input, I don´t get a connection to the container.
What am I missing?
Many thanks you for your help.