From fa416469d6fd1aa67858cf326a97dfc7f7f6b8b7 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 30 Oct 2024 21:38:00 +0530 Subject: [PATCH] feat: postgres healtcheck --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index f36e8900..5b850297 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,6 +25,11 @@ services: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 10s + timeout: 5s + retries: 5 minio: image: minio/minio