Mautic won't recognize installation

Your software
My Mautic version is: 5.2.1
My PHP version is: not sure
My Database type and version is: Mysql 8.0

Your problem
My problem is: I am running Mautic in docker for a while now, send already a couple of mails out via this. When my web container was recreated it did not recognize the installation.

On my web container the config/local.php file is present and still filled with data from the installation.
The DB is stilled filled

However I am constantly redirect to the /installer page.

Steps I have tried to fix the problem:
add the MAUTIC_INSTALLED variable to the docker file but this does not fix the issue