Skip to content

File watch doesn't work #4502

@Leon99

Description

@Leon99

As seen on the screenshot, servers don't reload on editing dynamic.toml (server2 was removed after traefik started):

image

Configuration

docker-compose.yml:

version: '3'

services:
  reverse-proxy:
    image: traefik:alpine
    ports:
      - "21000:80"
      - "8080:8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./traefik.toml:/etc/traefik/traefik.toml
      - ./config/:/config/

traefik.toml:

logLevel = "DEBUG"

[entryPoints]
    [entryPoints.http]
    address = ":80"
[docker]
[api]

[ping]
entryPoint = "http"

[accessLog]

[file]
  watch = true
  directory = "/config/"
  

config/dynamic.toml:

[frontends]
  [frontends.api]
  backend = "api"
    [frontends.api.routes.test_1]
    rule = "PathPrefixStrip: /api"

[backends]
  [backends.api]
    # ...
    [backends.api.servers.server1]
    url = "http://server1"
    [backends.api.servers.server2]
    url = "http://server2"

Environment

Windows 10 v1809
Docker Desktop 2.0.0.3

Any ideas appreciated. Happy to do any additional debugging required.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions