添加 How to install WordPress with Docker.

Signed-off-by: chen.yang <chen.yang@yuzhen-iot.com>
This commit is contained in:
chen.yang 2021-10-27 15:51:37 +08:00
parent fc58f0f0a9
commit f9c241d96b
1 changed files with 6 additions and 0 deletions

View File

@ -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
```