Fixed postgres healthchecks

This commit is contained in:
Alex Renoki
2024-10-04 08:49:02 +03:00
parent 9f5257bf8a
commit 31193a9f66
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ services:
healthcheck:
test:
- CMD-SHELL
- "pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}"
- "pg_isready -h localhost -U $${POSTGRES_USER} -d $${POSTGRES_DB}"
interval: 5s
timeout: 5s
retries: 10

View File

@@ -158,7 +158,7 @@ services:
healthcheck:
test:
- CMD-SHELL
- "pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}"
- "pg_isready -h localhost -U $${POSTGRES_USER} -d $${POSTGRES_DB}"
interval: 5s
timeout: 5s
retries: 3