Skip to content

Commit 2e6a571

Browse files
committed
add healthcheck
1 parent ebacaab commit 2e6a571

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ services:
4545
- ./db:/var/lib/postgresql/data
4646
ports:
4747
- 5432:5432
48+
healthcheck:
49+
test: [ "CMD-SHELL", "pg_isready -d sponsors -U ${POSTGRES_USER}" ]
50+
interval: 30s
51+
timeout: 10s
52+
retries: 5
4853

4954
watchtower:
5055
image: containrrr/watchtower

0 commit comments

Comments
 (0)