.env for staging/development

When developping on a Bedrock based site I am using Docker containers and
a .env for Docker container-specific config.
When Trellis Vagrantfile is used, the sites are mounted into the VM and
their .envfiles are adjusted to work correctly the Vagrant (staging) server.
However, now I have to undo these changes in the now modified .env files in
order to use the sites in the development Docker contaienr setup.
Can these changes be avoided or separate .env files be used?