Shell variables like $SECRETS_DIR in docker-compose command blocks must be escaped as $$SECRETS_DIR. Without escaping, docker-compose interprets them as environment variable interpolation and expands them to empty strings, causing: - mkdir: cannot create directory '' - Secrets copied to wrong path (/redis_password instead of /var/www/html/storage/secrets/redis_password) - PHP TypeError: RedisConfig::__construct() argument #3 must be string, null given The fix applies $$ escaping to all shell variables in the PHP service entrypoint script.
18 KiB
18 KiB