Fix 'Port Already Used by Another Container' in Docker Compose - How to Fix Docker Compose Variable Not Set-Fixing Python UnicodeDecodeError in Logging Handlers

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