Skip to content

Commit 63ebdaf

Browse files
committed
Docker-compose: finished healthcheck
1 parent d14993e commit 63ebdaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ services:
1111
ports:
1212
- "5432:5432"
1313
healthcheck:
14-
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
14+
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
1515
interval: 5s
1616
retries: 5
17-
start_period: 30s
17+
start_period: 5s
1818
timeout: 10s
1919

2020
api:

0 commit comments

Comments
 (0)