Skip to content
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

Fix PostgreSQL container restart #914

Merged
merged 5 commits into from
Mar 3, 2025
Merged

Conversation

cristianrgreco
Copy link
Collaborator

@cristianrgreco cristianrgreco commented Mar 1, 2025

No description provided.

@cristianrgreco cristianrgreco added bug Something isn't working patch Backward compatible bug fix labels Mar 1, 2025
Copy link

netlify bot commented Mar 1, 2025

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 047e632
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/67c45826cc41710007fddc43
😎 Deploy Preview https://deploy-preview-914--testcontainers-node.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Turns out if you try to connect to PG as soon as `pg_isready` exits 0, you fail to connect. Let's change the healthcheck to run an actual query. We need to compute this later as we need credentials.
@cristianrgreco cristianrgreco merged commit e533856 into main Mar 3, 2025
197 checks passed
@cristianrgreco cristianrgreco deleted the fix-postgresql-restart branch March 3, 2025 16:07
@leourbina
Copy link
Contributor

@cristianrgreco thanks for fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patch Backward compatible bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants