f9536736486f7b377c83200efb39b5c35f3ab971
- Author
- Pavle Portic <git@theedgeofrage.com>
- Committer
- Pavle Portic <git@theedgeofrage.com>
- Date
Message
Fix postgres healthcheck command
Diff
1diff --git a/docker-compose.yml b/docker-compose.yml
2index e50e567da9d6de9f7ae5be37a60c5b49db528046..4e8863d63fe21899b0dcc28cd4456e3c6d7a25f0 100644
3--- a/docker-compose.yml
4+++ b/docker-compose.yml
5@@ -11,7 +11,7 @@ services:
6 volumes:
7 - postgres-data:/var/lib/postgresql/data
8 healthcheck:
9- test: pg_isready
10+ test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
11 interval: 5s
12 timeout: 2s
13 retries: 5