DEV Community

Wordpress development with Docker

netcell on March 17, 2018

One of my obsessions lately is keeping my operating system as clean as possible. In order to do that, I perfer to install as few as possible anyt...
Collapse
 
shimtrevor profile image
Trevor Shim

Built something that lets you use this set-up without installing or running Docker on your local machine. dev.to/porter/wordpress-developmen...

It runs these containers in a remote machine (in a kubernetes cluster) and lets you develop directly inside them by syncing your local files with the remote files. Would love to hear your feedback :)

Collapse
 
tanepiper profile image
Tane Piper • Edited

This is pretty much what I'm providing out the box with Takeoff (takeoff.sh) + Wordpress Blueprint (github.com/takeoff-env/takeoff-blu...) although I must admit I need to fix a couple of things since I haven't needed to use it since I created it.

The blueprint comes out the box with Ngnix + PHP + MySQL setup, and it uses git submodules to clone Wordpress from it's repo to the local volume - it then uses some conventions to set up and run it from the local files within the Docker environment.

Would love you hear your opinion on using it

Collapse
 
netcell profile image
netcell

Thank you, I'll check it out.

Checking your wordpress blueprint I figure you are mounting the entire wordpress directory. My main point in this post is to mounting a minimum amount of files, especially with plugins/themes that is not related to the project and not gonna be modified.

Btw, I didn't know my posts are missing images. Time to fix my site :(

Collapse
 
tanepiper profile image
Tane Piper

Yea, I'm thinking to update the blueprint to do this instead, it was a good takeaway from this article. I also want to provide a more generic PHP blueprint too to get people started, so possibly make the Wordpress install optional via scripts.

Collapse
 
bigbennyb profile image
bigbennyb

Hi

In the image /chriszarate/wordpress/ , it seems Xdebug is activated by default no?

Bad for performances no ?