From f9c241d96b233d21171c75bb3dfce82c96b82b8d Mon Sep 17 00:00:00 2001 From: "chen.yang" Date: Wed, 27 Oct 2021 15:51:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20How=20to=20install=20WordP?= =?UTF-8?q?ress=20with=20Docker.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chen.yang --- .../WordPress/How_to_install_WordPress_with_Docker.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Software/Applications/WordPress/How_to_install_WordPress_with_Docker.md diff --git a/Software/Applications/WordPress/How_to_install_WordPress_with_Docker.md b/Software/Applications/WordPress/How_to_install_WordPress_with_Docker.md new file mode 100644 index 0000000..961cfe4 --- /dev/null +++ b/Software/Applications/WordPress/How_to_install_WordPress_with_Docker.md @@ -0,0 +1,6 @@ +# How to install WordPress with Docker + +```bash +docker run -e MYSQL_ROOT_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= --name wordpress --link wordpressdb:mysql -p 8007:80 -v "$PWD/html":/var/www/html -d wordpress +```