traefik: File Watch Doesn't Work

I am using Traefik on my osx docker installation with following config:

#...
[file]
filename = "/etc/traefik/rules.toml"
watch = true

#...

After I changed and saved rules.toml, the configuration however did not hot-reload, and I had to restart the Traefik docker container.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 4
  • Comments: 15 (5 by maintainers)

Commits related to this issue

Most upvoted comments

same for me with docker on ubuntu 16.04

this bug occurs in v1.6.4 version traefik, ubuntu 16.04 docker images.

anyone can reproduce this bug.

The watch in https://github.com/fsnotify/fsnotify doesn’t work when we mount a file in a container (but it works with a dir)

Moreover, be careful when you’re mounting a file https://forums.docker.com/t/modify-a-file-which-mount-as-a-data-volume-but-it-didnt-change-in-container/2813