Changes to basicauth.usersFile only get picked up after container restart


for basicAuth I have specified a usersFile in my docker-compose.yml

    # labels of service es01
      - "traefik.enable=true"
      - "traefik.http.routers.es01.rule=PathPrefix(`/es01`)"
      - ""
      - "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
      - ""
      - ""

Is there a way to automatically pick up the changes from usersFile?

I am having the same issue and can't find anything in the documentation about it.

Since your post is some days old already - did you solve the issue meanwhile?

I'm experiencing the same problem.

My goal is to add users to the usersFile without restarting anything. I'm running htpasswd outside the container. I see the new users if I run docker-compose exec traefik cat /users.htpasswd, but the don't work through traefik.

Thanks in advance for your help.

I'm helping my self: SIGHUP did the trick.

killall -SIGHUP traefik