Skip to content

Conversation

@tjamet
Copy link

@tjamet tjamet commented Mar 15, 2018

Hi,

For our projects, we are using a health check to postgres status and currently use it in tests to wait for the database to be up.

I thought it could be an interesting feature to add to the base images.

What do you think about it?

tjamet added 2 commits March 15, 2018 14:50
Add a customizable healthcheck

This healthcheck consists of 3 steps:
- Check if the entrypoint script is still running
- Check if postgres is ready to accept connections
- Check if postgres can respond to a query

Every step is logged and can be investigated.

Signed-off-by: Thibault Jamet <tjamet@users.noreply.github.com>
Signed-off-by: Thibault Jamet <tjamet@users.noreply.github.com>
@tianon
Copy link
Member

tianon commented Mar 15, 2018

See #282 😉

@tjamet
Copy link
Author

tjamet commented Mar 16, 2018

you're right @tianon looks like there is an ongoing discussion to solve :)

@yosifkit
Copy link
Member

Closing old issue. (discussion still open on #282)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants