docker pull wordpress:laste
docker pull mysql:5.6
docker run -d --privileged=true --name mysqld -v /home/lichao/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -p 33306:3306 mysql:5.6
docker run -d --name wordpress -e WORDPRESS_DB_HOST=mysql -e WORDPRESS_DB_USER=root -e WORDPRESS_DB_PASSWORD=123456 -e WORDPRESS_DB_NAME=wordpress -p1080:80 --link mysqld:mysql wordpress
yum -y install nginx
vim /etc/nginx/nginx.conf
location / {
proxy_pass http://127.0.0.1:1080
}
wordpress: http://10.10.1.197:1080/
nginx : http://10.10.1.197