Skip to content

Commit d14993e

Browse files
committed
Docker-compose: wait for the db to be accepting connections until the app can hit it
1 parent b5788e6 commit d14993e

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,8 +11,8 @@ services:
1111
ports:
1212
- "5432:5432"
1313
healthcheck:
14-
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
15-
interval: 10s
14+
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
15+
interval: 5s
1616
retries: 5
1717
start_period: 30s
1818
timeout: 10s

0 commit comments

Comments
 (0)