DB connection settings diff

This commit is contained in:
2023-10-31 13:41:15 -03:00
parent 81d1bc21fe
commit 00167b02d5
2 changed files with 6 additions and 4 deletions

View File

@ -20,13 +20,15 @@ return [
$arr = [
'host' => 'db',
'name' => $_ENV['MYSQL_DATABASE'],
'username' => $_ENV['MYSQL_USER'],
'password' => $_ENV['MYSQL_PASSWORD']
'user' => [
'name' => $_ENV['MYSQL_USER'],
'password' => $_ENV['MYSQL_PASSWORD']
]
];
if (isset($_ENV['MYSQL_PORT'])) {
$arr['port'] = $_ENV['MYSQL_PORT'];
}
return (object) $arr;
return json_decode(json_encode($arr));
},
'max_update_days' => 7
];