I want to setup a docker server with separate container of nginx and php-fpm. I followed different tutorials and successfully setup nginx and php-fpm via docker compose and was able to get the server up and process the php queries.
Even after reading so much and watching so many videos about docker, I'm still confused about the basics here.
I've a few questions:
How do I mount the nginx container files to my local volume so that I can make config changes to the nginx server?
How do I setup a whole php website via this docker? Where do I put all the files and codes for the website to run via docker?
How do I make my website pull the code via git in docker so that I can directly update my website via committing changes to git?
Tutorial I followed to get the server up and running: