jittering / traefik-kop

A dynamic docker->redis->traefik discovery agent
MIT License
179 stars 13 forks source link

--health-cmd ? #11

Closed itsalljustdata closed 1 year ago

itsalljustdata commented 2 years ago

I (wherever possible) monitor my containers with the excellent willfarrell/autoheal docker container. What would be a suitable --health-cmd for traefik-cop to test it's state of health?

chetan commented 2 years ago

@TheFlyingBadger the program operates fairly simply -- it continuously watches the docker API for any changes and when one is detected, tries to write those changes to redis. If there is any unexpected (unhandled) error in processing the config change or writing it into redis, the program will panic and exit with an error. In that situation, the container should automatically restart.

Otherwise, if the container is running, it should be working. I haven't seen a situation so far where it stopped working for some unknown reason and needed to be manually restarted. Hope that helps.