I have a docker-compose.yaml file and a .env file. If I declare a variable in the env file, I can access it in docker-compose. So, this is good.
docker-compose.yaml
.env