PHPStrom (MacOS) - issues with setup PHPInterpreter

I couldn’t also do it. I only managed to connect through docker connection and not docker-compose.

But as you can see in my answer here I had trouble test the database connection.