-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Labels
Description
Problem
I would like to do a healthcheck in Docker Compose on the PostgREST service. The default image doesn't have anything but the PostgREST binary in it. So a healthcheck using the /ready
endpoint (as described here) would require you to expand the image to include curl
, bloating the image, as you probably need to base it on a distro.
Solution
A new CLI flag called --ready
that hooks into the running process and performs the same functionality as the /ready
endpoint, exiting with status code 0
when ready or 1
otherwise.
Additionally, a similar flag --live
could be added to duplicate the /live
endpoint.
sweatybridge and steve-chavez