Skip to content

fix: specify database name in healthcheck for postgres service in docker#270

Merged
jirhiker merged 1 commit into
stagingfrom
docker-db-fix
Dec 4, 2025
Merged

fix: specify database name in healthcheck for postgres service in docker#270
jirhiker merged 1 commit into
stagingfrom
docker-db-fix

Conversation

@jacob-a-brown

Copy link
Copy Markdown
Contributor

Why

This PR addresses the following problem / context:

  • If the database name is not specified it tries to connect to a database called user, which prevents the healthcheck from completing correctly, which causes problems down the line

How

Implementation summary - the following was changed / added / removed:

  • specify -d ${POSTGRES_DB} in the health check

Notes

Any special considerations, workarounds, or follow-up work to note?

  • Use bullet points here

…ker-compose.yml

if the database is not specified docker tries to connect to a database
called "user" by default which may not exist leading to false negatives in health checks
for the postgres service.
@codecov-commenter

codecov-commenter commented Dec 4, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.
see 24 files with indirect coverage changes

@chasetmartin chasetmartin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jirhiker jirhiker merged commit faeb9fe into staging Dec 4, 2025
6 checks passed
@TylerAdamMartinez TylerAdamMartinez deleted the docker-db-fix branch February 26, 2026 18:29
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.

4 participants