"docker monolith" approach helped me to switch from WSL to docker, I decided to create 1 image, that I will be useing with most of my local developed projects.
-
prepare project files (/PATH/TO/PROJECT) that would be the folder we mount from our host system.
-
prepare apache2 config for docker (/PATH/TO/WEB/ROOT/CONSIDERING/PROJECT) / /PATH/TO/APACHE_CONFIG/FODLER We will mount this configuration from host as the image should be ready to be used with many projects. In my case, I use yii2 and mount project folder to /var/www/mserver, so in the config file I use document root as /var/www/mserver/frontend/web e.t.c