diff options
Diffstat (limited to 'readme.mdown')
| -rw-r--r-- | readme.mdown | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/readme.mdown b/readme.mdown new file mode 100644 index 0000000..387e992 --- /dev/null +++ b/readme.mdown @@ -0,0 +1,25 @@ +# WordPress Docker Developer Environment + +This is an easy to start environment designed for developing for WordPress. It spins up PHP, MySQL, and Nginx in an automated way. + +## Usage + +### Quickstart + +1. Download [WordPress](https://wordpress.org/latest.zip) and extract it into the top level of this Git repository. Name the directory wordpress. + +2. Run `docker-compose up -d --build` to build and start the server in the background. This runs WordPress on port 80 and 443. + +### Close + +- Run `docker-compose down` +- To do a reset: `docker-compose down --volumes` + +### wp-cli + +- To use wp-cli: `docker-compose run --rm wp user list` + +### HTTPS + - Create certs using [mkcert](https://github.com/FiloSottile/mkcert) and place them into the nginx/certs directory and name the files `cert.pem` and `cert-key.pem` + + |
