8 Star 26 Fork 5

xin.chu / nginx-php7-composer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

nginx-php7-composer

nginx php7 dockerfile

该镜像集成了nginx+php7+composer,脚本由supervisor进行管理, 可自由安装php扩展,可配置多nginx server,一条命令即可搭建完整环境

编译

docker build -t cccchu/nginx-php7 .

container目录

  • 代码目录:/data/www
  • php扩展目录:/data/phpextini
  • php扩展安装脚本目录:/data/phpextfile
  • nginx配置目录:/usr/local/nginx/conf/vhost
  • 本地工作目录:/Users/apple

运行

docker run -it --name test_docker -v /Users/apple/source_codes:/data/www -v /Users/apple/nginx-php7/extini:/data/phpextini -v /Users/apple/nginx-php7/extfile:/data/phpextfile  -v /Users/apple/nginx-php7/site-enabled:/usr/local/nginx/conf/vhost -p 8081:80 -d cccchu/nginx-php7

注意:修改脚本或配置文件,需要重启容器

空文件

简介

该镜像集成了nginx+php7+composer,脚本由supervisor进行管理, 可自由安装php扩展,可配置多nginx server,一条命令即可搭建完整环境 展开 收起
PHP
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/ccccccchu/nginx-php7-composer.git
git@gitee.com:ccccccchu/nginx-php7-composer.git
ccccccchu
nginx-php7-composer
nginx-php7-composer
master

搜索帮助