WordDock allows you to run a WordPress site in docker with ease.
- PHP 7
- Nginx
- MariaDB
- Docker
- Docker compose
- WordPress
-
Download and extract WordPress files into your project directory (but still in the
wordpress
folder) -
Clone (or submodule) this repository into the project root (so there are folders
wordpress
andwordpress-docker
)git clone https://github.com/DockerIt/wordpress-docker
or if you are already using version control:
git submodule https://github.com/DockerIt/wordpress-docker
-
cd wordpress-docker
-
docker-compose up -d php-fpm nginx mariadb
-
You should then be able visit the site by visiting the IP address
- Windows: Type
docker-machine ip
- Linux: 127.0.0.1
- Windows: Type
-
Use a nice URL, edit your hosts file and put the IP address in your hosts file.
-
When you go through the WordPress 5 minute install the only thing you need to change is the Database Host to
mariadb
Matthew Tonkin - Dunn
Inspired (heavily) from the Laradock project created by Mahmoud Zalt.