...

/

Environment Variables with Docker-compose

Environment Variables with Docker-compose

Using environment variables in Docker

Currently, we have included our database credentials in the code itself. But in production systems and an ideal development workflow, it is not advised to add such critical information in the code.

Clone the project using git clone https://github.com/venky8283/Docker.git

Type git checkout 6e24a37faa2e1bd3401c77b2951f995f410b3d35 to get to the code used in the lesson.

Environment variables are one of the options that are used in production systems to manage credentials. So, let’s see how to work with the ...