-
安装
docker
和docker-compose
-
git clone 代码到本地
$ git clone [email protected]:Gekkoou/dnmp.git
-
执行命令
$ cd dnmp $ docker-compose up -d
-
默认站点在浏览器中访问
localhost
phpmyadmin 访问
localhost:8080
, 帐号root
密码root
├── conf 配置目录
│ ├── mysql MySQL配置文件目录
│ │ └── my.cnf MySQL配置文件
│ ├── nginx Nginx配置文件目录
│ │ ├── conf.d 站点配置文件目录
│ │ │ └── default.conf 默认站点配置文件
│ │ └── nginx.conf Nginx通用配置文件
│ └── php PHP配置目录
│ │── php.ini PHP配置文件
│ └── php-fpm.conf PHP-FPM配置文件
├── log 日志目录
│ ├── mysql MySQL日志目录
│ ├── nginx Nginx日志目录
│ └── php PHP日志目录
├── mysql MySQL数据文件目录
├── php PHP目录
│ └── php56 PHP5.6目录
│ └── Dockerfile Dockerfile配置文件
├── www 站点根目录
│ └── index.php index文件
└── docker-compose.yml docker-compose配置文件