From 8d84a3de2967c7c8605a3e822f00c64aeefb93df Mon Sep 17 00:00:00 2001 From: Konstantin Romanov Date: Sun, 3 Mar 2024 18:09:34 +0300 Subject: [PATCH] update README.md --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f4e8eb..3c4d4f1 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,12 @@ services: image: redis:7-alpine volumes: - redis:/data + healthcheck: + test: [ "CMD-SHELL", "redis-cli ping | grep PONG" ] + interval: 30s + timeout: 10s + retries: 3 + start_period: 30s exchange-api: image: kotasha/go-exchange-api:latest @@ -35,9 +41,15 @@ services: - 8080:8080/tcp depends_on: - redis-cache + healthcheck: + test: [ "CMD-SHELL", "./healthcheck" ] + interval: 30s + timeout: 10s + retries: 3 + start_period: 30s volumes: - redis: + redis: ``` ## Как проверить