Aman Chaudhary
04/18/2020, 7:21 AMRafaelKr
04/18/2020, 8:56 AM.env
This file is unique for every environment and added to the .gitignore
You can then reference this file in your docker-compose file https://docs.docker.com/compose/environment-variables/#the-env_file-configuration-option
Generally many frameworks already load this file by default, so if you're developing locally you also have this already set up correctly.
If you don't use a framework or it doesn't load the .env by default, you can use this package to accomplish that task: https://www.npmjs.com/package/dotenvAman Chaudhary
04/20/2020, 1:59 PMRafaelKr
04/20/2020, 4:13 PM