Docker stack with Symfony,api platform and Mysql

  connection, docker, mysql, php, symfony

I have some troubles with a docker stack. I just want to use API Platform with Symfont and MySql.
It works well with PostGres but I need to use Mysql. I could launch the stack, connect to PHPMyadmin and see my database but PHP is unable to connect. I made change to my .env and docker-compose.yml to match ports but it doesn’t connect. If you could help me here is my repo :

Thank you or your help.

Source: Symfony Questions