static-file-server icon indicating copy to clipboard operation
static-file-server copied to clipboard

[Feature Request] healthcheck support

Open dlehammer opened this issue 2 years ago • 2 comments

Hi static-file-server gurus,

I apologize in advance if I've missed existing support.

But it would be helpful with healthcheck support for container monitoring, examples of approaches from other Go projects; Prometheus and Traefik.

dlehammer avatar Jul 26 '23 16:07 dlehammer

how about to put a singlefile named healthcheck? :)

yoyoys avatar Aug 07 '23 03:08 yoyoys

Hi @yoyoys,

Thanks for taking the time to respond.

While that approach most likely would be sufficient for an external healthcheck, it's unfortunately insufficient for the builtin Docker healthcheck support. That healthcheck depends on image support via an executable inside the container returning an exit code 🤓

dlehammer avatar Aug 07 '23 23:08 dlehammer