diff --git a/.vale/styles/spelling-exceptions.txt b/.vale/styles/spelling-exceptions.txt index 04c9641965..7936ab939f 100644 --- a/.vale/styles/spelling-exceptions.txt +++ b/.vale/styles/spelling-exceptions.txt @@ -51,6 +51,7 @@ graphene graphiql graphql greymatter +healthcheck hfid hfids hostname @@ -95,6 +96,7 @@ order_weight openconfig opentelemetry order_by +Postgress Prefetch profile_name pseudocode diff --git a/changelog/5739.fixed.md b/changelog/5739.fixed.md new file mode 100644 index 0000000000..d333cf4f8c --- /dev/null +++ b/changelog/5739.fixed.md @@ -0,0 +1 @@ +Fix Docker task-manager-db Postgress healthcheck test by adding database and user parameters. \ No newline at end of file diff --git a/development/docker-compose-deps-nats.yml b/development/docker-compose-deps-nats.yml index 988d524124..94884b27d2 100644 --- a/development/docker-compose-deps-nats.yml +++ b/development/docker-compose-deps-nats.yml @@ -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 diff --git a/development/docker-compose-deps.yml b/development/docker-compose-deps.yml index f9f893b382..2114429812 100644 --- a/development/docker-compose-deps.yml +++ b/development/docker-compose-deps.yml @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 6fc7253d8d..fc706e9c69 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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