I use Redis as a Provider in which I insert rules that dynamically change over time trough my program.
Usually this works fine but sometimes Traefik won't get any new Configurations from Redis or delete old ones until I restart Traefik.
Traefik also doesn't throw any errors or warnings that it can't reach redis anymore.
Have you run at log.level=debug ?
Is it actually disconnecting, have you observed a socket closing on one/both ends? Do you have any infrastructure in between traefik and redis? A firewall, for example, could disrupt this connection if TCP keepalives are not in use.
Sorry I went on vacation shortly after posting this.
I turned on debug logs now and will update if I observe this behavior again.
No they communicate over a docker network