It is possible to use environment variables in 'local.php'?


I’m moving Mautic from one server to another one. I want to automate the process using Ansible.

My question is about using environment variables in local.php, for example it is possible to do this?

Using getenv():

$parameters = array(
	'db_driver' => 'pdo_mysql',
	'db_host' => 'localhost',
	'db_table_prefix' => null,
	'db_port' => getenv('DB_PORT'),
	'db_name' => getenv('DB_NAME'),
	'db_user' => getenv('DB_USER'),
	'db_password' => getenv('DB_PASSWORD'),

I ask this because I don’t know if Mautic rewrites this file.

I wait for reply.

Best Regards,