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
This commit is contained in:
2025-11-04 18:33:03 +01:00
parent b8cfabeed0
commit 5f7ebd9133

View File

@@ -211,7 +211,7 @@ services:
# Stricter health checks # Stricter health checks
# Uses REDIS_PASSWORD environment variable exported by entrypoint # Uses REDIS_PASSWORD environment variable exported by entrypoint
healthcheck: 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 interval: 10s
timeout: 3s timeout: 3s
retries: 5 retries: 5