Multiple entryPoints for the same router in Docker

Hello everyone
Hopefully, an easy question that I cannot seem to find a solution for in the docs.
If possible, I would like for one of my docker containers to be available using https through the ports 443 and 444.
http and https work in general and I get a valid certificate.

When I enter https://cloud.home.info I get an "404 page not found" error
It works as intended if I use https://cloud.home.info:444

Here an excerpt of my traefik.yml

entryPoints:
  web:
    address: :80
    http:
#      middlewares:
#        - allowlist@file
      redirections:
        entrypoint:
          to: websecure
          scheme: https
  websecure:
    address: :443
    http:
      middlewares:
        - allowlist@file
  https-external:
    address: :444

Here the labels of the container:

    labels:
      - traefik.enable=true
      - traefik.docker.network=frontend
      - traefik.http.routers.nextcloud.rule=Host(`cloud.home.info`)
      - traefik.http.routers.nextcloud.entrypoints=web
      - traefik.http.routers.nextcloud-sec.tls=true
      - traefik.http.routers.nextcloud-sec.tls.certresolver=cloudflare
      - traefik.http.routers.nextcloud-sec.entrypoints=websecure
      - traefik.http.routers.nextcloud-sec.entrypoints=https-external
      - traefik.http.routers.nextcloud-sec.rule=Host(`cloud.home.info`)

It seems the second "entrypoint" entry overrides the first. So I can have one or the other but not both.
I tried adding a third router but that does not seem to work either so I am at a loss as to what else I could try.
If anyone has a simple working configuration for this or knows what part of the docs would reference this use-case, I would be grateful.
Thank you and have a nice day.

Correct, it overwrites. Use:

.entrypoints=websecure,https-external

This is useless, as you have a redirect on that entrypoint:

1 Like

That worked. Thank you

Thanks for the additional information. I will revisit it once I changed all the other containers.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.