Skip to content

Magento 2 env.php configuration -> what needs to be done to be compatible with docker containers of docker-magento #1168

Closed Answered by Franz-Budon-Bapt
Franz-Budon-Bapt asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

To get answers to my questions, I did the whole automatic installation just to see what app/etc/env.php file it will produce.
no big surprise, it seems i guessed right.

What do you guys think to use syntax like $_ENV['MYSQL_ROOT_PASSWORD'] instead of hard values in the app/etc/env.php. Just so that if we change the env/*.env files values, it will automatically update the values used by Magento once you restart the container, or i shouldn't bother for this rare use case ?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Franz-Budon-Bapt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant