From 36a24cf553e6aae27604700187a65d38a0432055 Mon Sep 17 00:00:00 2001 From: Dennis ten Hoove Date: Fri, 4 Mar 2022 16:42:27 +0100 Subject: [PATCH] Implement healthcheck on nitter and redis --- docker-compose.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index a98855f..50ae752 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,11 @@ services: depends_on: - nitter-redis restart: unless-stopped + healthcheck: + test: wget -nv --tries=1 --spider http://127.0.0.1:8080/Jack/status/20 || exit 1 + interval: 30s + timeout: 5s + retries: 2 nitter-redis: image: redis:6-alpine @@ -20,6 +25,11 @@ services: volumes: - nitter-redis:/data restart: unless-stopped + healthcheck: + test: redis-cli ping + interval: 30s + timeout: 5s + retries: 2 volumes: nitter-redis: