mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-23 02:27:33 +00:00
Oliver Davies
fb63a6c245
Allow for changing the default database name, username and password from `drupal` to `app` by enabling the `experimental.useNewDatabaseCredentials` feature flag in a project's `build.yaml` file. Refs: OD-27
27 lines
588 B
Twig
27 lines
588 B
Twig
# {{ managedText | raw }}
|
|
|
|
export DOCKER_UID=1000
|
|
|
|
{% if dockerCompose %}
|
|
export COMPOSE_PROJECT_NAME={{ name }}
|
|
{% if "php" == language %}
|
|
export COMPOSE_PROFILES=web,php,database
|
|
{% elseif "node" == language %}
|
|
export COMPOSE_PROFILES=node
|
|
{% endif %}
|
|
|
|
export DOCKER_WEB_VOLUME=.:{{ project_root }}
|
|
{% endif %}
|
|
|
|
{% if "drupal-project" == type %}
|
|
{% if experimental.useNewDatabaseCredentials %}
|
|
export MYSQL_DATABASE=app
|
|
export MYSQL_PASSWORD=app
|
|
export MYSQL_USER=app
|
|
{% else %}
|
|
export MYSQL_DATABASE=drupal
|
|
export MYSQL_PASSWORD=drupal
|
|
export MYSQL_USER=drupal
|
|
{% endif %}
|
|
{% endif %}
|