As a software developer, I have daily routines for our clients projects. One of my most important one is a clean PHP + Symfony development environment based on docker. The most tricky part is often the setup of xdebug. In my blog articles below I'll give you a full guide on how to setup such an environment.
Part one gives you an indroduction for the basic setup: Docker based PHP 7.x + Symfony 4.x development environment
Part two digs further into the setup of xdebug with PhpStorm: https://blog.rkl.io/en/blog/using-xdebug-with-phpstorm-and-docker
The setup is proven under common linux distributions. Mac OS should also work. So far I know, also the latest windows 10 Versions. However, I cannot guarantee this.