-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change healthcheck postgres #17
base: master
Are you sure you want to change the base?
Conversation
@patsevanton We were actually able to get this to go away without quiet mode by keeping everything in one string
|
Thank you, it's working |
Solved, thanks. |
@@ -9,7 +9,7 @@ services: | |||
- POSTGRES_DB=kong | |||
- POSTGRES_HOST_AUTH_METHOD=trust | |||
healthcheck: | |||
test: ["CMD-SHELL", "pg_isready"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to reflect this change in the README.md as well.
It worked for me, but I wrote this way: healthcheck:
test: pg_isready -d bioteste_dev -U postgres |
i would say this is a bug in docker compose, putting the healthcheck command in a single string fixes the issue peter-evans/docker-compose-healthcheck#17 CLOSES #72
tried test: ["CMD", "pg_isready", "-q", "-d", "root", "-U", "postgres"] and lot similar approaches and still not work. but this one works perfectly. I am just curious why |
this works for me, thanks |
Got it working with this and slight modification for env vars: test: ["CMD-SHELL", "pg_isready -d ${DATABASE_NAME} -U ${DATABASE_USER}"] |
No description provided.