I am running multiple docker services (including traefik 2) on the same machine.
The machine (has a public hostname) and is accessible via the internet on https port (443).
The idea is make those services accessible by following URL:
https://my_public_host_name/service1
https://my_public_host_name/service2
https://my_public_host_name/service3
...
How I can best secure those public services ?
I was thinking about using Traefik's BasicAuth middleware for those services.
but doesn't this clash if the docker service itself also has some authentication mechanism
as in that case some browsers will try to logon automatically to this docker service using Traefik's BasicAuth username/password which won't work if that docker service has a different user name and password.
Is it actually possible to define basic authentication and tls only once for path https://my_public_host_name/... and then for each service define a routing rule based on the PathPrefix ?