Hi,
for basicAuth
I have specified a usersFile
in my docker-compose.yml
[...]
# labels of service es01
labels:
- "traefik.enable=true"
- "traefik.http.routers.es01.rule=PathPrefix(`/es01`)"
- "traefik.http.services.es01.loadbalancer.server.port=9200"
- "traefik.http.routers.es01.middlewares=es01@docker,es01_auth@docker"
# To create a user password entry use:
# htpasswd -B ./traefik/usersfile_es01 user # -B use Bcrypt
- "traefik.http.middlewares.es01_auth.basicauth.usersfile=/etc/traefik/usersfile_es01"
This works fine but if there is a change in usersfile_es01
it will not be active until I restart the traefik container.
I already tried with
# command of service traefik
[...]
- "--providers.file.directory=/etc/traefik"
- "--providers.file.watch=true"
Is there a way to automatically pick up the changes from usersFile
?