Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is located the external mysql config ? #16

Open
victorkurauchi opened this issue Feb 28, 2018 · 1 comment
Open

Where is located the external mysql config ? #16

victorkurauchi opened this issue Feb 28, 2018 · 1 comment

Comments

@victorkurauchi
Copy link

victorkurauchi commented Feb 28, 2018

Hi Boran, i'm trying to use your docker-drupal and i would like to know how drupal finds the exeternal mysql config passed by env with docker ?

I mean, as far as i know we need to update settings.php and set the database values on the drupal project we're working on.

docker run -td -p 8004:80 --name bc -e "DRUPAL_VERSION=drupal-8" -e "DRUPAL_ADMIN_PW=foo" -e "DRUPAL_SITE_NAME=My Super site" -e "MYSQL_HOST=10.1.1.1" -e "MYSQL_DATABASE=drupal_site1" -e "MYSQL_USER=drupal_site1" -e "MYSQL_PASSWORD=pass4drupal_site1" -v /opt/foo:/var/www/html boran/drupal

How does it work with docker ? Which moment the value is set, how those variables are set on the settings.php ?

Thanks!

@Boran
Copy link
Owner

Boran commented Feb 28, 2018

See start.sh, specifically drush site-install

https://github.com/Boran/docker-drupal/blob/master/start.sh#L224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants