images\cherry_red.png1 采用docker部署Clodreve应用
      images\cherry_blue.png1.1 1,安装docker-compose
      images\cherry_blue.png1.2 2,搭建部署LNMP结构
         images\cherry_orange.png1.2.1 编写php配置文件
         images\cherry_orange.png1.2.2 编写nginx.conf配置文件
      images\cherry_blue.png1.3 3,配置应用目录
         images\cherry_orange.png1.3.1 nfs远程卷挂载
      images\cherry_blue.png1.4 MySQL配置
      images\cherry_blue.png1.5 测试部署应用
   images\cherry_red.png2 Cloudreve云架构设计图
      images\cherry_blue.png2.1 网络模式
      images\cherry_blue.png2.2 Linux命令
         images\cherry_orange.png2.2.1 chown
         images\cherry_orange.png2.2.2 find
         images\cherry_orange.png2.2.3 awk(文本切片处理)
         images\cherry_orange.png2.2.4 cut
      images\cherry_blue.png2.3 存储系统创建拉伸
         images\cherry_orange.png2.3.1 LVM逻辑卷的创建及使用
      images\cherry_blue.png2.4 Nginx初始化操作
         images\cherry_orange.png2.4.1 Nginx 惊群效应
      images\cherry_blue.png2.5 Nginx负载均衡反向代理
         images\cherry_orange.png2.5.1 负载均衡的算法
      images\cherry_blue.png2.6 存储服务器搭建
      images\cherry_blue.png2.7 构建动态服务器PHP
      images\cherry_blue.png2.8 Keepalived代理服务器高可用
         images\cherry_orange.png2.8.1 Keeplived原理
      images\cherry_blue.png2.9 MySQL主从模型构建
         images\cherry_orange.png2.9.1 主从复用(读写分离)
      images\cherry_blue.png2.10 上线Cloud应用
images\23-1.png


vim docker-compose.yml

# web server
nginx:
  image: nginx:alpine
  #端口映射
  ports:
    - "82:80"
    # - "443:443"
  volumes:
    # app
    #卷挂载,当前app应用位置
    - /root/Webapp/Compose/app:/usr/share/nginx/html/
    # nginx configs
    - /root/Webapp/Compose/dockerfiles-master/lnmp/conf.d:/etc/nginx/conf.d/:ro
    # certificates
    # - ./server.crt/:/etc/nginx/server.crt:ro
    # - ./server.key/:/etc/nginx/server.key:ro
  links:
    - fpm:__DOCKER_PHP_FPM__

# php-fpm
fpm:
  image: php:7.0-fpm
  ports:
    - "9000:9000"
  volumes:
  #目录地址映射 
    - /root/Webapp/Compose/app:/usr/share/nginx/html/
    # php配置文件
    - /root/Webapp/Compose/dockerfiles-master/lnmp/php/php.ini-production:/usr/local/etc/php/php.ini:ro
  # environment:
    # Set your APP env variables here:
    # - APP_KEY=
    # - DB_HOST=
    # - DB_DATABASE=
    # - DB_USERNAME=
    # - DB_PASSWORD=
  links:
    - mysql:mysql

# database
mysql:
  image: mysql:5.6
  ports:
    # Allow client to access 3306
    - "3306:3306"
  volumes:
  #存储的位置
    - /root/Webapp/Compose/mysql:/var/lib/mysql
  environment:
  #MYSQL密码
    - MYSQL_ROOT_PASSWORD=xxx


docker-compose up