- PHP
- MySQL
- Nginx
- Redis
# curl -fsSL https://get.docker.com/ | sh
国内加速
# curl -sSL https://get.daocloud.io/docker | sh
# git clone https://github.com/hteen/docker-lnmp.git
# curl -L https://github.com/docker/compose/releases/download/1.8.0-rc1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
# chmod +x /usr/local/bin/docker-compose
# cd docker-lnmp
# docker-compose up -d
Creating dockerlnmp_redis_1
Creating dockerlnmp_mysql_1
Creating dockerlnmp_php_1
Creating dockerlnmp_nginx_1
#
启动ok
- phpinfo : http://localhost/index.php
- mysql : http://localhost/mysql.php
- redis : http://localhost/redis.php