mirror of https://github.com/docker/docs.git
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:
parent
cdbebff817
commit
568cded2a5
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue