From 477fe6767e38bab51af711b53cabc65dac494ff2 Mon Sep 17 00:00:00 2001 From: Michael Schiemer Date: Tue, 4 Nov 2025 17:01:47 +0100 Subject: [PATCH] fix(deployment): correct Redis health check command and add authentication MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previous health check used incorrect command: redis-cli --raw incr ping This increments a counter instead of checking Redis health. Changed to proper health check: - Use standard redis-cli ping command - Authenticate with password from Docker Secret - Verify PONG response with grep This is the ninth cumulative fix for production deployment pipeline. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- docker-compose.production.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.production.yml b/docker-compose.production.yml index 0218ee29..98b0a2e0 100644 --- a/docker-compose.production.yml +++ b/docker-compose.production.yml @@ -209,7 +209,7 @@ services: # Stricter health checks healthcheck: - test: ["CMD", "redis-cli", "--raw", "incr", "ping"] + test: ["CMD", "sh", "-c", "redis-cli -a $$(cat /run/secrets/redis_password 2>/dev/null || echo '') ping | grep -q PONG"] interval: 10s timeout: 3s retries: 5