Fix Nginx 502 Bad Gateway with Docker Environment Variables - How to Fix Git Remote Origin Already Exists-Merging Two Git Repos with Unrelated Histories

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