Browse By

Setup Docker PHP-FPM Nginx MySQL WordPress

How to setup Docker with Nginx, PHP-FPM, MySQL and WordPress.

I was attempting to fix Nginx, MySQL, PHP-FPM and WordPress locally on my Mac with brew and decided the whole thing would be easier just to run in docker.

I have split each service into its own container to keep in line with the docker way.

See my Github page for more instructions but its pretty straight forward (Be sure you have installed docker toolbox or docker):

Clone repo:

Set ENV for WordPress core files location:

Build images:

Run the environment:

Once this is done browse to http://dockerhost (mac) or http://localhost if you are on linux and you should your WordPress site!

Leave a Reply

Your email address will not be published. Required fields are marked *