From 5f1c8afa9cd73fc45a747c0b65e657168a3c887f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 3 Mar 2023 21:54:14 +0000 Subject: [PATCH] fix: include MySQL variables for Drupal These environment variables are needed for the initial database to be created for Drupal. --- templates/env.example.twig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/env.example.twig b/templates/env.example.twig index c88d582..85872cc 100644 --- a/templates/env.example.twig +++ b/templates/env.example.twig @@ -6,3 +6,9 @@ export COMPOSE_PROFILES=web,php,database export DOCKER_WEB_VOLUME=.:/app {% endif %} + +{% if "drupal-project" == type %} +export MYSQL_DATABASE=drupal +export MYSQL_PASSWORD=drupal +export MYSQL_USER=drupal +{% endif %}