Docker Compose automatically loads docker-compose.override.yml if present, allowing you to customize local configuration without modifying versioned files.
Create docker-compose.override.yml at the project root:
services:
postgresql:
ports:
- "5434:5432" # Use port 5434 instead of 5432Useful to avoid port conflicts with other projects or local services.