基於Docker構建PHP開發環境

Docker-PHP

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 cloudphp

Requirements

Windows and Mac users only need to install Dockerdocker

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 browserbash

Configure

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

Data

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

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

Githubthis

相關文章
相關標籤/搜索