From 7e70ca94d836366de8b4f48a942a2495a957eca9 Mon Sep 17 00:00:00 2001 From: Pascal <56366987+chilluniverse@users.noreply.github.com> Date: Fri, 14 Oct 2022 01:26:06 +0200 Subject: [PATCH] DATABASE_HOST In the docker-compose.yml is the Database_Host defined as "mariadb". If Host is not changed in the environment.php to "mariadb" as well the setup will fail --- qrcode/config/environment.php.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrcode/config/environment.php.example b/qrcode/config/environment.php.example index 9980cdd..70640ed 100644 --- a/qrcode/config/environment.php.example +++ b/qrcode/config/environment.php.example @@ -17,7 +17,7 @@ if(is_string($docker_cid)) { define('DATABASE_PREFIX', Getenv('DATABASE_PREFIX')); define('DATABASE_CHARSET', Getenv('DATABASE_CHARSET')); } else { - define('DATABASE_HOST', "localhost"); + define('DATABASE_HOST', "mariadb"); define('DATABASE_PORT', "3306"); define('DATABASE_NAME', "qrcode"); define('DATABASE_USER', "root");