From 5f7ebd9133f497662bb7cb5fd1849cc008851fd5 Mon Sep 17 00:00:00 2001 From: Michael Schiemer Date: Tue, 4 Nov 2025 18:33:03 +0100 Subject: [PATCH] fix(deployment): correct Redis health check variable syntax for environment variable access - Changed health check from $$REDIS_PASSWORD to $REDIS_PASSWORD - Double dollar sign is Docker Compose variable escaping (wrong context) - Single dollar sign correctly references environment variable exported by entrypoint - Health check runs in container shell where REDIS_PASSWORD is available - Fixes 'container application-redis-1 is unhealthy' deployment failure --- 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 331967e7..82b9d728 100644 --- a/docker-compose.production.yml +++ b/docker-compose.production.yml @@ -211,7 +211,7 @@ services: # Stricter health checks # Uses REDIS_PASSWORD environment variable exported by entrypoint healthcheck: - test: ["CMD-SHELL", "redis-cli -a \"$$REDIS_PASSWORD\" ping | grep -q PONG"] + test: ["CMD-SHELL", "redis-cli -a \"$REDIS_PASSWORD\" ping | grep -q PONG"] interval: 10s timeout: 3s retries: 5