Skip to content

Commit 90a61a9

Browse files
authored
Modify healthcheck to check database readiness (#363)
Updated healthcheck command to include database name.
1 parent 1b5f6a8 commit 90a61a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/prod/compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
- POSTGRES_DB=${POSTGRES_DB:?err}
1212
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
1313
healthcheck:
14-
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER}']
14+
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
1515
interval: 10s
1616
timeout: 5s
1717
retries: 5

0 commit comments

Comments
 (0)