Need to override some Docker configuration locally? Too easy!
Docker automatically reads an override file on your machine.
“By default, Compose reads two files, a compose.yaml and an optional compose.override.yaml file. By convention, the compose.yaml contains your base configuration. The override file can contain configuration overrides for existing services or entirely new services.”
Edit docker-compose.override.yml with your local overrides. I’ve used this to pass environment variables in development with no code changes.