I am working on Linux. I managed to connect to the docker with PHPStorm and use remote interpreter and also to connect with PHPUnit which is installed with composer inside the project.
Everything is working fine until you need to test the database. Because PHPStorm is connecting through docker the internal network isn’t available. So connecting to the database fails. I couldn’t connect through docker-compose so I can’t test this alternative but I am assuming that connecting through docker-compose it would work.
I advise you to use Git in your host and not inside docker container because with every docker container purge you would need to set up Git again.