From 382cd1dbf9b5378825ad9e694c0ce9244098d86a Mon Sep 17 00:00:00 2001 From: "actus.wirtenberger" Date: Fri, 29 Mar 2024 14:12:10 +0000 Subject: [PATCH] Fix postgresql health check --- docker-compose-with-gpus.yml | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose-with-gpus.yml b/docker-compose-with-gpus.yml index 6b10ae3..1b4979b 100644 --- a/docker-compose-with-gpus.yml +++ b/docker-compose-with-gpus.yml @@ -13,7 +13,7 @@ services: POSTGRES_PASSWORD: ${SOLAR_DB_PASSWORD} POSTGRES_DB: ${SOLAR_DB_DATABASE} healthcheck: - test: [ "CMD", "pg_isready", "-U", "postgres" ] + test: [ "CMD", "pg_isready", "-U", "${SOLAR_DB_USERNAME}" ] interval: 10s timeout: 5s retries: 5 diff --git a/docker-compose.yml b/docker-compose.yml index 99823ad..113640e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,7 @@ services: POSTGRES_PASSWORD: ${SOLAR_DB_PASSWORD} POSTGRES_DB: ${SOLAR_DB_DATABASE} healthcheck: - test: [ "CMD", "pg_isready", "-U", "postgres" ] + test: [ "CMD", "pg_isready", "-U", "${SOLAR_DB_USERNAME}" ] interval: 10s timeout: 5s retries: 5