Skip to content

New CLI option --ready #4239

@ewan-escience

Description

@ewan-escience

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions