giftless icon indicating copy to clipboard operation
giftless copied to clipboard

Please add curl as a dependency to allow health checks

Open piscis opened this issue 9 months ago • 2 comments

Hi we would like to do health checks inside of the container with docker compose to see if the container is up and listening. I noticed that wget or curl are missing. It would be nice to have them backed into the image to make it possible to check if the service is up and running with a docker compose health check like this (not tested):

...
healthcheck:
      test: ["CMD", "sh", "-c", "curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:5000 | grep -q '404'"]
      interval: 5s
      timeout: 30s
      retries: 10
      start_period: 10s
...

piscis avatar Mar 12 '25 12:03 piscis