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:

  1. How do I mount the nginx container files to my local volume so that I can make config changes to the nginx server?

  2. 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?

  3. 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:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.