The docker-compose command by default uses .env file and also allows to use custom env-files through --env-file parameter
docker-compose
.env
env
--env-file