基于Docker构建PHP开发环境

天涯浪子 提交于 2019-12-07 17:43:19

Docker-PHP

Features

  • Customize the configuration file
  • Data is stored in the host

Software Stack

  • [x] MongoDB
  • [x] Redis
  • [x] MySQL
  • [x] PHP 7.1 + PHP-FPM
  • [x] Nginx with LuaJit

How to use it?

If live behind the GFW please read this post Use Ali cloud

Requirements

Windows and Mac users only need to install Docker

Getting started


git clone https://github.com/huangyanxiong01/docker-php.git

cd docker-php

docker-compose up -d

Now,you can open http://127.0.0.1:3000/ in browser

Configure

You can find the custom $software configuration file in ./docker/$software/etc/

Data

You can find the $software data file in ./docker/$software/Data/

TODO

  • [ ] Build a PHP image that contains all of the extensions
  • [ ] Write a php test program
  • [ ] Optimize the configuration file
  • [ ] Write usage documentation
  • [ ] Test on Windows

Github

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!