I would like to save a docker-compose.yaml file inside a git repo.
I would like to have some default .env variables, but I would like to have also something like .env.local which could override .env, but I don't want to commit .env.local so it should be gitignored.
Is there any way to tell docker-compose.yaml "use .env.local if exists, otherwise .env"?
The idea is to allow someone to clone the repository, use their own .env.local if they want, without having git changes to commit or use default .env values if they don't want to customize it.