diff --git a/docker/compose.yml b/docker/compose.yml index 6edc547..a7f2537 100644 --- a/docker/compose.yml +++ b/docker/compose.yml @@ -223,6 +223,12 @@ services: command: | traefik --configFile=/etc/traefik/static.toml + --providers.file.directory=/etc/traefik/ + --providers.file.filename=dynamic.toml + --providers.docker=true + --providers.docker.watch=false + --providers.docker.exposedByDefault=false + --providers.docker.network=web --certificatesresolvers.${DNS}.acme.email=${CF_API_EMAIL} --certificatesresolvers.${DNS}.acme.storage=/etc/traefik/acme/acme.json --certificatesresolvers.${DNS}.acme.dnschallenge diff --git a/docker/traefik/static.toml b/docker/traefik/static.toml index 42f01aa..301877b 100644 --- a/docker/traefik/static.toml +++ b/docker/traefik/static.toml @@ -35,17 +35,3 @@ asDefault = true address = ":853" reusePort = true asDefault = false - -[providers] -[providers.docker] -exposedByDefault = false -network = "web" -useBindPortIP = false -watch = true -[providers.docker.tls] -insecureSkipVerify = true -[providers.file] -directory = "/etc/traefik" -watch = true -filename = "dynamic.toml" -debugLogGeneratedTemplate = true