Files
michaelschiemer/docker-compose.production.yml
Michael Schiemer 700fe8118b fix(deployment): complete Redis health check fix - update entrypoint script variable syntax
Previous fix (5f7ebd9) only updated health check line but missed entrypoint script.
The entrypoint script was still using $$REDIS_PASSWORD (Docker Compose escaping)
instead of $REDIS_PASSWORD (shell variable syntax).

Changes:
- Line 180: export REDIS_PASSWORD=$(cat ...) - now uses single $
- Line 182: if [ -n "$REDIS_PASSWORD" ] - now uses single $
- Line 190: --requirepass "$REDIS_PASSWORD" - now uses single $

Technical explanation:
The command: block is a multi-line shell script passed to /bin/sh -c.
Within this shell script context, we use normal shell variable syntax with
single $ for variable references. The export statement makes REDIS_PASSWORD
available to both the Redis process and the health check command.

This completes the fix for: "container application-redis-1 is unhealthy"

Related: 5f7ebd9 (health check fix), b1e3a00 (fallback strategy)
2025-11-04 19:24:06 +01:00

12 KiB