Comment on How do you healthcheck your containers?
frongt@lemmy.zip 2 weeks ago
If I go to its web interface (because everything is a web interface) and it’s down, then I know it has a problem.
I could set up monitoring, but I wouldn’t care enough to fix it until I had free time to use it either.
tuckerm@feddit.online 1 week ago
Same here. I’m the only user of my services, so if I try visiting the website and it’s down, that’s how I know it’s down.
I prefer phrasing it differently, though. “With my current uptime monitoring strategy, all endpoints serve as an on-demand healthcheck endpoint.”
One legitimate thing I do, though, is have a systemd service that starts each docker compose file. If a container crashes, systemd will notice (I think it keeps an eye on the PIDs automatically) and restart them.