compose: fix Redis password env var reference in backend service#3542
compose: fix Redis password env var reference in backend service#3542Nsanjayboruds wants to merge 1 commit intoOWASP:mainfrom
Conversation
|
The linked issue must be assigned to the PR author. |
|
Caution Review failedThe pull request is closed. Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughUpdated the DJANGO_REDIS_PASSWORD environment variable in the local Docker Compose configuration to reference DJANGO_REDIS_PASSWORD instead of DJANGO_REDIS_HOST. This ensures correct Redis password resolution when the variable is not explicitly set. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Resolves #3541
Summary
The local Docker Compose configuration for the backend service incorrectly references the Redis host variable for the password, causing Redis authentication failures. This PR updates the environment variable to use the correct password reference.
File: compose.yml
Change
Rationale
Prevents Redis authentication failures in local development
Ensures consistent environment variable usage across services
Aligns with the cache service (--requirepass $REDIS_PASSWORD) and the worker service, which already use the correct variable
Validation Steps
1.Set a custom password in Nest/backend/.env:
2.Start the local stack:
3.Confirm the backend starts without Redis auth errors and cache operations work.
4.Run project checks and tests:
Scope & Risk
Limited to local development compose
One-line change; minimal risk
No impact on production/staging compose files