From 1ba937ac8993a7d931c5537a72e6b23644a77425 Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 25 Nov 2022 03:13:06 -0500 Subject: [PATCH] Add healthcheck for Redis Signed-off-by: Tommy --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index b89dcfe..91acafe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,6 +25,11 @@ services: - redis:/data ports: - "127.0.0.1:6379:6379" + healthcheck: + test: redis-cli ping + interval: 30s + timeout: 5s + retries: 2 user: "999:1000" read_only: true security_opt: