From fde6782b723e27945b59b81825f87c83c0883167 Mon Sep 17 00:00:00 2001 From: juuso-j Date: Tue, 16 Apr 2024 09:52:52 +0300 Subject: [PATCH] Add healthceck to postgres service --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index f4dfa4c..0587c92 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,6 +11,11 @@ services: - "5432:5432" volumes: - postgres-data:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready"] + interval: 10s + timeout: 5s + retries: 5 memcached: image: memcached:latest