finishing touches on Wordpress example in Compose docs per pr#129

Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
This commit is contained in:
Victoria Bialas 2016-10-26 13:46:53 -07:00
parent cdbebff817
commit 568cded2a5
1 changed files with 31 additions and 26 deletions

View File

@ -29,9 +29,13 @@ with Docker containers. This quick-start guide demonstrates how to use Compose t
$ cd my_wordpress/ $ cd my_wordpress/
3. Create a `docker-compose.yml` file that will start your `Wordpress` blog and a separate `MySQL` instance with a volume mount for data persistence: 3. Create a `docker-compose.yml` file that will start your
`Wordpress` blog and a separate `MySQL` instance with a volume
mount for data persistence:
```none
version: '2' version: '2'
services: services:
db: db:
image: mysql:5.7 image: mysql:5.7
@ -56,8 +60,9 @@ with Docker containers. This quick-start guide demonstrates how to use Compose t
environment: environment:
WORDPRESS_DB_HOST: db:3306 WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_PASSWORD: wordpress WORDPRESS_DB_PASSWORD: wordpress
```
**NOTE**: The folder `./.data/db` will be automatically created in the project directory >**NOTE**: The folder `./.data/db` will be automatically created in the project directory
alongside the `docker-compose.yml` which will persist any updates made by wordpress to the alongside the `docker-compose.yml` which will persist any updates made by wordpress to the
database. database.