https://github.com/gedex/wpdock
WordPress themes and plugins development with Docker and Compose
https://github.com/gedex/wpdock
Last synced: 12 months ago
JSON representation
WordPress themes and plugins development with Docker and Compose
- Host: GitHub
- URL: https://github.com/gedex/wpdock
- Owner: gedex
- License: mit
- Created: 2015-07-14T22:05:39.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-16T17:00:28.000Z (about 11 years ago)
- Last Synced: 2025-04-05T22:32:31.422Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 116 KB
- Stars: 13
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
wpdock
======
WordPress themes and plugins development using Docker and Compose.
## Demo
[](https://asciinema.org/a/a67505xy5l3zlemc8e4xcekxd)
## Requirements
* [Docker](https://docs.docker.com/installation/)
* [Compose](https://docs.docker.com/compose/install/)
## Install
```
git clone --recursive https://github.com/gedex/wpdock.git
cd wpdock
docker-compose build
docker-compose up -d
```
Now open `http://[docker-ip]/`. If you're using [boot2docker](http://boot2docker.io/),
then replace `[docker-ip]` with your boot2docker IP, check it with:
```
boot2docker ip
```
Run the famous WP setup from there.
## Running WP-CLI
```
docker-compose run wpcli --help
```
### Install theme:
```
docker-compose run wpcli theme install twentyfifteen --activate
```
### Install plugin:
```
docker-compose run wpcli plugin install woocommerce --activate
```
## Try various WP versions
Since WP installed as submodule, you can checkout different version of WP:
```
cd www/wp
git checkout 3.9
git checkout 4.2.2
git checkout master
```
## Stop the services and container
To stop services:
```
docker-compose stop
```
Your changes are persisted. So when you do `docker-compose up -d` again you'll get the same
snapshot as before.
When you want to kill all the containers:
```
docker-compose kill
```
## Remove containers completely
```
docker-compose kill
docker rm $(docker ps -a -q) # Warning: this will remove all containers
```
If you start again, you'll be prompted with WP install again.
## Other services
These services are provided in case you're developing plugins that interact with them.
* Memcached
* Redis
* Elasticsearch
See [docker-compose.yml](./docker-compose.yml) file for service settings.
## LICENSE
MIT License -- see [LICENSE](./LICENSE) file.