Can someone give me a sanity check why my dynamic config does not load?

I currently have Traefik working in my homelab.

I currently run the latest traefik image configured with a static and dynamic config.
So far so good. I can connect to my dashboard, and see everything i've configured.

The problem is i have a file provider configured, which IS being displated in the traefik dashboard. But any dynamic config i add to my traefik-dynamic.yml won't reload and be visible in the traefik routers section for example.

But i do see the file provider loaded next to the docker provider within the traefik dashboard.


I run multiple services which i host from my home network to the outside. My problem is that i've added a new server (which isn't a docker container) so i have to resort to the file provider within traefik so the new service can be hosted from inside to the outside.

Yesterday i got it working for a sec, but then i did a reboot and now it doesn't work anymore. Think i made a typo or something in that direction.

The link to my docker-compose, traefik.yml and traefik-dynamic.yml can be found here:
https://drive.google.com/drive/folders/1aBpSXt7DTwLW_HGHQkPgN11DTcSg5x3P?usp=sharing

Sorry for my bad english,

Thanks in advance !

Nevermind, i already found my fault and it had to do with how i defined my service within the router.

I found my error on courtesy of this: Understand File Provider in Traefik 2 - YouTube

I had my router and service defined like this:
http:
routers:
router1:
rule: Host(opencartdev.blabla)
entryPoints:
- web
service:
- opencart-service
services:
opencart-service:
loadBalancer:
servers:
- url: blabla

But should've been like this:
http:
routers:
router1:
service: opencart-service
rule: Host(opencartdev.blabla)
entryPoints:
- web

services:
opencart-service:
loadBalancer:
servers:
- url: blabla

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.