Skip to content

Commit

Permalink
Merge pull request #5753 from jefvantongerloo/jefvt-fix-5739-docker-p…
Browse files Browse the repository at this point in the history
…ostgress-healthcheck

Fix docker task-manager-db postgress healthcheck
  • Loading branch information
wvandeun authored Feb 14, 2025
2 parents 09c6581 + 3945331 commit 3a98a35
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
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

0 comments on commit 3a98a35

Please sign in to comment.