Working with PHP project under WSL2 Docker on Windows
Setting up
Make sure you have installed WSL2 and Docker.
Organize your project. Prepare file structure.
Enable Docker WSL integration

Writing nginx.conf
In order to setup your web-project you have to configure Nginx or any other web-server:
Here is a command for generating self-signed certificates:
And the main docker-compose file:
All right! That's all!