Fix Docker Compose Port Allocation Errors - Git Detached HEAD: How to Undo and Recover-Resolving Conflicting Package Versions in Multiple Requirements Files

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