添加 How to install WordPress with Docker.
Signed-off-by: chen.yang <chen.yang@yuzhen-iot.com>
This commit is contained in:
parent
fc58f0f0a9
commit
f9c241d96b
|
@ -0,0 +1,6 @@
|
|||
# How to install WordPress with Docker
|
||||
|
||||
```bash
|
||||
docker run -e MYSQL_ROOT_PASSWORD=<password> -e MYSQL_DATABASE=wordpress --name wordpressdb -v "$PWD/database":/var/lib/mysql -d mariadb:latest
|
||||
docker run -e WORDPRESS_DB_USER=root -e WORDPRESS_DB_PASSWORD=<password> --name wordpress --link wordpressdb:mysql -p 8007:80 -v "$PWD/html":/var/www/html -d wordpress
|
||||
```
|
Loading…
Reference in New Issue