Skip to content

Commit 1dce417

Browse files
committed
fix: health check command
1 parent 3a83170 commit 1dce417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
- POSTGRES_USER=${POSTGRES_USER}
2020
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
2121
healthcheck:
22-
test: ["CMD-SHELL", "pg_isready -U postgres"]
22+
test: ["CMD-SHELL", "pg_isready -U $POSTGRES_USER -d $POSTGRES_DB"]
2323
start_period: 1m
2424
volumes:
2525
- psql:/var/lib/postgresql/data

0 commit comments

Comments
 (0)