Skip to content

Commit 211a282

Browse files
committed
fix: postgres healthcheck spitting out error message REFS #72
i would say this is a bug in docker compose, putting the healthcheck command in a single string fixes the issue peter-evans/docker-compose-healthcheck#17 CLOSES #72
1 parent 882ffd2 commit 211a282

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

docker-compose.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ services:
3636
test:
3737
[
3838
"CMD-SHELL",
39-
"pg_isready",
40-
"-U",
41-
"${POSTGRES_USER}",
42-
"-d",
43-
"${POSTGRES_DB}"
39+
"pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"
4440
]
4541
interval: 30s
4642
timeout: 30s

0 commit comments

Comments
 (0)