How to Fix Nginx 502 Bad Gateway in Docker Compose - Resolve Git Clone Timeout Behind Proxy-Git Detached HEAD: How to Save Your Work with a Branch

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.