I use Traefik in Docker. Because I want to separate Internal and External Network using two Interfaces I have two Entrypoints with different Port
# Web
- '--entrypoints.web.address=:80/tcp'
- '--entrypoints.web.http.redirections.entryPoint.to=websecure'
# Websecure
- '--entrypoints.websecure.address=:443/tcp'
- '--entrypoints.websecure.http.middlewares=crowdsec@file,hsts@file,compress@file'
# HTTP3
- '--entrypoints.websecure.http3'
# Web Public
- '--entrypoints.web-pub.address=:8081/tcp'
- '--entrypoints.web-pub.http.redirections.entryPoint.to=websecure-pub'
# Websecure Public
- '--entrypoints.websecure-pub.address=:8443/tcp'
- '--entrypoints.websecure-pub.http.middlewares=crowdsec@file,hsts@file,compress@file'
# HTTP3 Public
- '--entrypoints.websecure-pub.http3'
This is my Port Mapping
ports:
- '${NET_INTERFACE_EXTERNAL}:80:8081/tcp'
- '${NET_INTERFACE_EXTERNAL}:443:8443/tcp'
- '${NET_INTERFACE_EXTERNAL}:443:8443/udp'
- '${NET_INTERFACE_INTERNAL}:80:80/tcp'
- '${NET_INTERFACE_INTERNAL}:443:443/tcp'
- '${NET_INTERFACE_INTERNAL}:443:443/udp'
Now h3 is getting advertised on Port 8443 instead of the correct Port 443.
Is there any way to change the advertised Port?