wordpress部署
1,拉取镜像
docker pull 192.168.100.10/library/wordpress
docker pull 192.168.100.10/library/mysql:5.6
2,编写compose文件
mkdir /root/wordpress
vim docker-compose.yaml
version: '3.3'
services:
wordprss:
image: 192.168.100.10/library/wordpress
ports:
- 82:80
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_PASSWORD: 123456
mysql:
image: 192.168.100.10/library/mysql:5.6
environment:
MSYQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: wordpress
#上下级之间有两个空格
标签:部署,100.10,library,wordpress,192.168,mysql,docker
From: https://blog.51cto.com/u_15433935/6334798