Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vianasw committed May 1, 2015
1 parent b1fc221 commit 411a911
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,23 @@ If you choose to use the MySQL Docker container and you want the changes to the
1. Create a data only container dockerfile:

```
FROM ubuntu:14.04
MAINTAINER William Viana <vianasw@gmail.com>
VOLUME /var/lib/mysql
FROM ubuntu:14.04
MAINTAINER William Viana <vianasw@gmail.com>
VOLUME /var/lib/mysql
CMD ["true"]
CMD ["true"]
```
2. Then run the following commands:

```
$ docker build -t username/mysql_datastore .
$ docker run --name wp_data username/mysql_datastore
$ docker build -t username/mysql_datastore .
$ docker run --name wp_data username/mysql_datastore
```
3. After that, you can run the MySQL Docker container like this:

```
$ docker run --name wp_db -p 3306:3306 --volumes-from wp_data -v /path/to/dvwps/configs/:/etc/mysql/conf.d -e MYSQL_ROOT_PASSWORD=password -e MYSQL_USER=wordpressuser -e MYSQL_PASSWORD=password -e MYSQL_DATABASE=wordpress -d mysql:5.6
$ docker run --name wp_db -p 3306:3306 --volumes-from wp_data -v /path/to/dvwps/configs/:/etc/mysql/conf.d -e MYSQL_ROOT_PASSWORD=password -e MYSQL_USER=wordpressuser -e MYSQL_PASSWORD=password -e MYSQL_DATABASE=wordpress -d mysql:5.6
```

Notice that you have to include the path where you have the `mysql.cnf` file stored.
Expand Down

0 comments on commit 411a911

Please sign in to comment.