Skip to content
WordPress Docker makes developing for WordPress easy and predictable. It sets up everything for you, so that you can dive straight into developing your plugins and themes without any hassle.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
wordpress @ d8eb8da
.gitmodules
Dockerfile
LICENSE
README.md
docker-compose.yml
fig.yml
tmuxp.yml
wp-config.php

README.md

WordPress Docker

WordPress Docker makes developing for WordPress easy and predictable. It sets up everything for you, so that you can dive straight into developing your plugins and themes without any hassle.

There in a more in-depth blog post is available called Develop WordPress plugins and themes using Docker.

Getting Started

  1. Clone this repostory: git clone --recursive https://github.com/joch/wordpress-docker.git
  2. Copy the provided config file to the WordPress directory: cp wp-config.php wordpress/
  3. Run docker-compose up to start the containers.
  4. Browse to http://[docker ip]:8000/ and you are ready to go! (find the ip using boot2docker ip)

Tmuxp workspace

A predefined workspace is provided to easily get going.

  1. Install tmuxp (sudo pip install tmuxp on a Mac)
  2. Run tmuxp load tmuxp.yml (provided that you have tmux installed)
  3. A tmux session will be started with a vim window located in the plugins directory. The containers are started automatically in the second window.

If you're new to Docker

If you are running boot2docker, you can easily find your Docker IP by running boot2docker ip.

The easiest way to install boot2docker and fig is to use Homebrew and follow these steps:

  1. Install VirtualBox.
  2. Install the software: brew install boot2docker fig.
  3. Create a virtual machine: boot2docker init.
  4. Finally start the virtual machine: boot2docker up.

Acknowledgements

The setup is based on the excellent article Getting started with Fig and WordPress.

You can’t perform that action at this time.