Repository navigation
issue with healthcheck on postgres/alpine 18.4 #1414
hyperfocusedblur
started this conversation in
General
Replies: 2 comments 2 replies
|
See #1237, https://github.com/docker-library/faq#healthcheck, and https://github.com/docker-library/healthcheck/blob/master/postgres/docker-healthcheck |
1 reply
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
im runnning postgres alpine latest version in podman with podman-compose
here is my compose file:
.env file
the issue:
healthcheck returns error and condition healthy never arrives. status of the container hangs on 'starting' if i use healtcheck in compose.
however if i manually run pg_isready on the container from host, there seems to be nothing that would indicate that something is 'not healthy'.
in logs, i see that healthcheck command is probably getting this FATAL value from the postgres container:
however when i run pg_isready from the host i receive this on stdout:
also here it looks like the db exists, contrary to logs:
to me at least, it indicates that there is no error and the database exists. maybe i am missing something
All reactions