These steps worked to bring up Traefik + Docker + HTTPS with Let's Encrypt: Docker-compose with Let's Encrypt: HTTP Challenge
Add these to the services → traefik → command list:
--entrypoints.web.address=:80 (may already be present if you used Let's Encrypt HTTP challenge, if so, don't add it again)--entrypoints.web.http.redirections.entrypoint.to=websecure--entrypoints.web.http.redirections.entrypoint.scheme=http--entrypoints.web.http.redirections.entrypoint.permanent=true (optional)
You must also include the following in service → whoami → labels:
traefik.http.routers.whoami.entrypoints=web,websecuretraefik.http.routers.whoami.tls.certresolver=myresolverservices → traefik → command list:--entrypoints.websecure.http3services → traefik → ports list:443:443/udp