halverneus / static-file-server

Tiny, simple static file server using environment variables for configuration
MIT License
400 stars 77 forks source link

[Feature Request] healthcheck support #100

Open dlehammer opened 1 year ago

dlehammer commented 1 year ago

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.

yoyoys commented 1 year ago

how about to put a singlefile named healthcheck? :)

dlehammer commented 1 year ago

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 🤓