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 docker task-manager-db postgress healthcheck #5753

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .vale/styles/spelling-exceptions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ graphene
graphiql
graphql
greymatter
healthcheck
hfid
hfids
hostname
Expand Down Expand Up @@ -95,6 +96,7 @@ order_weight
openconfig
opentelemetry
order_by
Postgress
Prefetch
profile_name
pseudocode
Expand Down
1 change: 1 addition & 0 deletions changelog/5739.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix Docker task-manager-db Postgress healthcheck test by adding database and user parameters.
4 changes: 3 additions & 1 deletion development/docker-compose-deps-nats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ services:
volumes:
- workflow_db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
test:
- "CMD-SHELL"
- "pg_isready -q -d ${INFRAHUB_TASKMANAGER_DB_DATABASE:-prefect} -U ${INFRAHUB_TASKMANAGER_DB_USER:-postgres}"
interval: 10s
timeout: 5s
retries: 5
Expand Down
4 changes: 3 additions & 1 deletion development/docker-compose-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ services:
volumes:
- workflow_db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
test:
- "CMD-SHELL"
- "pg_isready -q -d ${INFRAHUB_TASKMANAGER_DB_DATABASE:-prefect} -U ${INFRAHUB_TASKMANAGER_DB_USER:-postgres}"
interval: 10s
timeout: 5s
retries: 5
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ services:
volumes:
- workflow_db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
test:
- "CMD-SHELL"
- "pg_isready -q -d ${INFRAHUB_TASKMANAGER_DB_DATABASE:-prefect} -U ${INFRAHUB_TASKMANAGER_DB_USER:-postgres}"
interval: 10s
timeout: 5s
retries: 5
Expand Down
Loading