This repository provides a ready-to-use WordPress setup on Docker, perfect for quickly jumping into a new theme/plugin development.
It includes 2 starter themes :
- one from underscores.me
- one from WordPress Gulp Starter Kit which includes a full gulp-based development workflow. Just pick the one you like best and start hacking.
It includes an instance of the WordPress Plugin Boilerplate You could also generate one here.
- install Docker
- install Docker-compose
- Clone this repository on your computer
cd
to your project folder- Start the machine:
docker-compose up -d
- Visit http://localhost:1973/ to see the live local site.
- Visit http://localhost:8080/ to use PhpMyAdmin and perform database dumps (obligatory in between docker reloads, otherwise you will lose any change in the database).
- To stop the machine:
docker-compose down
If you put a .sql file in the /data folder, it will autopopulate the wordpress
database when you fire up docker-compose.
So a good idea is to backup your wordpress database as an SQL file into the /data
folder before shutting down docker. You can use phpmyadmin (on localhost:8080) to export the database.