Skip to content

goodevilgenius/wordpress-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress Docker Boilerplate

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.

Setup

  1. Install and setup docker and docker-compose.
  2. Download a copy of this repo.
  3. Set up your PATH variable 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".
  4. cp .env.example .env, and then edit the .env as you see fit.
  5. dc build will run docker-compose build to build your images.
  6. dc up to start your containers.

Usage

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.

Notes

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.

About

Boilerplate site for using wordpress with docker

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors