Giter Site home page Giter Site logo

zhongwenrong / dnmp-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shmilylbelva/dnmp

0.0 1.0 0.0 5.43 MB

Docker lnmp+redis (nginx,mysql,php7 or php5.6 or php5.4,redis)

License: MIT License

Shell 0.08% Dockerfile 1.92% Erlang 5.37% HTML 24.11% Python 4.77% CSS 1.95% JavaScript 52.99% PHP 8.82%

dnmp-1's Introduction

dnmp

docker上一键部署lnmp。具体步骤可到我的简书查看 Docker deploying Nginx MySQL PHP7 in one key, support full feature functions.

1. Feature

  1. 完全开源 Completely open source.
  2. 支持多版本PHP切换(PHP5.4、PHP5.6、PHP7.2...) Support Multiple PHP version(PHP5.4, PHP5.6, PHP7.2) switch.
  3. 支持绑定任意多个域名 Support Multiple domains.
  4. 支持HTTPS和HTTP/2 Support HTTPS and HTTP/2.
  5. PHP源代码位于宿主机中 PHP source located in host.
  6. MySQL data位于宿主机中 MySQL data directory in host.
  7. 所有配置文件可在宿主机中直接修改 All conf files located in host.
  8. 所有日志文件可在宿主机中直接查看 All log files located in host.
  9. 内置完整PHP扩展安装命令 Built-in PHP extensions install commands.
  10. 实现一次配置,Windows、Linux、MacOs皆可用 Supported any OS with docker.

2. Usage

  1. Install gitdocker and docker-compose;
  2. Clone project:$ git clone https://github.com/shmilylbelva/dnmp.git
  3. Start docker containers:You may need use sudo before this command in Linux.
  4. Go to your browser and type localhost, you will see: image.png

The index file is located in ./www/site1/.

3. Other PHP version?

Default, we start LATEST PHP version by using:

we can also start PHP5.4 or PHP5.6 by using:

We need not change any other files, such as nginx config file or php.ini, everything will work fine in current environment (except code compatibility error).

Notice: We can only start one php version, for they using same port. We must STOP the running project then START the other one.

4. HTTPS and HTTP/2

Default demo include 2 sites:

To preview them, add 2 lines to your hosts file (at /etc/hosts on Linux and C:\Windows\System32\drivers\etc\hosts on Windows):

Then you can visit from browser.

5. Use log

We can identify log directory in nginx / php / php-fpm / mysql config file. To display the log file in host

6. License

MIT

dnmp-1's People

Contributors

shmilylbelva avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.