Get env variables from .env or dockerFile/docker-compose.yml, to config,php to connect to mysql database
问题 Instead of hardcoding the db_username and password, I want to define a env variable in docker. I am new to Docker, so some stuff I still need to learn more about. Another question i want to ask is, if someone else want to run my container, like clone from github, they will have to set themselves the env variables to connect to db right? Create a .env and stuff like that.. config.php <?php define('DB_SERVER', getenv('DB_SERVER')); define('DB_USERNAME', getenv('DB_USERNAME')); define('DB