镜像
snowdreamtech/wordpress:latest
安装命令
# 根据实际情况修改配置信息
docker run -d \
--name=wordpress \
--restart unless-stopped \
-e TZ=Asia/Shanghai \
-e WORDPRESS_DB_NAME='wordpress' \
-e WORDPRESS_DB_USER='test' \
-e WORDPRESS_DB_PASSWORD='test' \
-e WORDPRESS_DB_HOST='mariadb' \
-e WORDPRESS_DB_CHARSET='utf8mb4' \
-e WORDPRESS_DB_COLLATE='utf8mb4_unicode_ci' \
-p 80:80 \
-v /path/to/languages:/var/lib/nginx/html/wp-content/languages \
-v /path/to/plugins:/var/lib/nginx/html/wp-content/plugins \
-v /path/to/themes:/var/lib/nginx/html/wp-content/themes \
-v /path/to/uploads:/var/lib/nginx/html/wp-content/uploads \
snowdreamtech/wordpress:latest
本文共621个字符,其中有 18 个汉字,平均阅读时长 ≈ 2分钟
评论