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

Share MySQL credentials with Docker Containers #2283

Merged
merged 3 commits into from
Dec 19, 2017
Merged

Conversation

kducharm
Copy link
Member

@kducharm kducharm commented Dec 14, 2017

With the switch to Docker Compose v2, environment variables are no longer shared between containers. To allow dkan_starter to use credentials, switched to use an environment file and including it in web/cli containers configuration.

  • Bring up site:
git clone git@github.com:NuCivic/dkan.git
cd dkan
bash dkan-init.sh dkan
export AHOY_CMD_PROXY=DOCKER # (can be put in bashrc)
ahoy docker up
ahoy docker exec ahoy dkan drupal-rebuild mysql://drupal:123@db/drupal
ahoy docker exec ahoy dkan remake
ahoy docker exec ahoy dkan reinstall
  • Ensure MYSQL_* variables are available:
    ahoy docker exec env | grep MYSQL_
    ahoy docker exec web env | grep MYSQL_

@dafeder dafeder merged commit b926e2b into 7.x-1.x Dec 19, 2017
@dafeder dafeder deleted the mysql-docker-env-kd branch December 19, 2017 00:58
dafeder pushed a commit that referenced this pull request Apr 24, 2020
* Moved MySQL docker credentials to file for access by web/cli containers

* Updated Changelog.txt
dafeder pushed a commit that referenced this pull request Apr 24, 2020
* Moved MySQL docker credentials to file for access by web/cli containers

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

Successfully merging this pull request may close these issues.

3 participants