#0000 - Fix syntax error in PostgreSQL healthcheck command

The incorrect double dollar sign syntax in the healthcheck command has been corrected. This ensures that the environment variable POSTGRES_USERNAME is properly interpolated.
This commit is contained in:
Guillaume "B.B." Van Hemmen 2024-10-10 17:40:59 +02:00
parent 6bac073d56
commit f526692e59

View file

@ -54,7 +54,7 @@ services:
condition: any condition: any
delay: 5s delay: 5s
healthcheck: healthcheck:
test: [ "CMD-SHELL", "pg_isready", "-U", "$${POSTGRES_USERNAME}", "-d", "sonar" ] test: [ "CMD-SHELL", "pg_isready", "-U", "${POSTGRES_USERNAME}", "-d", "sonar" ]
interval: 1s interval: 1s
timeout: 5s timeout: 5s
retries: 10 retries: 10