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
wordpressfolder) -
Clone (or submodule) this repository into the project root (so there are folders
wordpressandwordpress-docker)git clone https://github.com/DockerIt/wordpress-dockeror if you are already using version control:
git submodule add 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.