This is a boilerplate site for Wordpress, with Docker built-in. This will allow you to easily build a Wordpress site with a local environment in Docker.
- Install and setup
dockeranddocker-compose. - Download a copy of this repo.
- Set up your
PATHvariable to include./bin. This will allow you to use the built-in scripts to easily interact with your docker instance. You can do this by adding this to your.bashrc(or similar file for other shells):export PATH="./bin:$PATH". cp .env.example .env, and then edit the.envas you see fit.dc buildwill rundocker-compose buildto build your images.dc upto start your containers.
Open up your browser to http://localhost:7373 and set up Wordpress.
After this, you can also use wp-cli from the root directory. E.g., to install the WooCommerce plugin, you can run wp plugin install woocommerce, and wp plugin activate woocommerce to activate the plugin.
I'll try to keep this repo up-to-date with the most recent version of Wordpress.
Feel free to submit an issue for any bugs/improvements, or even better, fork the repo, fix the bug, and open a PR.