https://www.pascallandau.com/blog/structuring-the-docker-setup-for-php-projects/
Pascal  Landau wrote up a step by step tutorial on how to build a Docker  development setup for PHP projects, and yes it contains probably really  everything you need. It’s very in-depth in order to avoid writing a  tutorial with only half of the instructions where many people will  struggle applying it to their own projects afterwards.