diff --git a/docker-compose-dev.yaml b/docker-compose-dev.yaml index 959dd67..ba449a7 100644 --- a/docker-compose-dev.yaml +++ b/docker-compose-dev.yaml @@ -57,7 +57,7 @@ services: POSTGRES_DB: mediacms TZ: Europe/London healthcheck: - test: ["CMD-SHELL", "pg_isready", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"] + test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"] interval: 10s timeout: 5s retries: 5 diff --git a/docker-compose-http-proxy.yaml b/docker-compose-http-proxy.yaml index 2b3194e..1636768 100644 --- a/docker-compose-http-proxy.yaml +++ b/docker-compose-http-proxy.yaml @@ -78,7 +78,7 @@ services: POSTGRES_DB: mediacms TZ: Europe/London healthcheck: - test: ["CMD-SHELL", "pg_isready", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"] + test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"] interval: 10s timeout: 5s retries: 5 diff --git a/docker-compose-https-proxy.yaml b/docker-compose-https-proxy.yaml index 51c4a7a..774a206 100644 --- a/docker-compose-https-proxy.yaml +++ b/docker-compose-https-proxy.yaml @@ -80,7 +80,7 @@ services: POSTGRES_DB: mediacms TZ: Europe/London healthcheck: - test: ["CMD-SHELL", "pg_isready", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"] + test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"] interval: 10s timeout: 5s retries: 5 diff --git a/docker-compose-letsencrypt.yaml b/docker-compose-letsencrypt.yaml index b00db9d..8ac29e9 100644 --- a/docker-compose-letsencrypt.yaml +++ b/docker-compose-letsencrypt.yaml @@ -100,7 +100,7 @@ services: POSTGRES_DB: mediacms TZ: Europe/London healthcheck: - test: ["CMD-SHELL", "pg_isready", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"] + test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"] interval: 30s timeout: 10s retries: 5 diff --git a/docker-compose-named-volumes.yaml b/docker-compose-named-volumes.yaml index 77058c3..f923a77 100644 --- a/docker-compose-named-volumes.yaml +++ b/docker-compose-named-volumes.yaml @@ -76,7 +76,7 @@ services: POSTGRES_DB: mediacms TZ: Europe/London healthcheck: - test: ["CMD-SHELL", "pg_isready", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"] + test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"] interval: 30s timeout: 10s retries: 5 diff --git a/docker-compose.yaml b/docker-compose.yaml index 4e4a3f5..491b6b0 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -72,7 +72,7 @@ services: POSTGRES_DB: mediacms TZ: Europe/London healthcheck: - test: ["CMD-SHELL", "pg_isready", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"] + test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"] interval: 10s timeout: 5s retries: 5