Skip to content

niuniubaba/dnmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnmp

Docker deploying Nginx MySQL PHP7 in one key, support full feature functions.

Feature

  1. Support Multiple domains.
  2. Support HTTPS and HTTP/2.
  3. Support PHP7, Nginx and MySQL version latest.
  4. PHP source located in host.
  5. MySQL data directory in host.
  6. All conf files located in host.
  7. All log files located in host.
  8. Built-in PHP extensions install commands.

Usage

  1. Install git, docker and docker-compose;
  2. Clone all dlnmp directories and files from Github:
    $ git clone https://github.com/yeszao/dlnmp.git
    
  3. Start docker container:
    $ docker-compose up
    
    You may need use sudo before this command.
  4. Go to your browser and type localhost, you will see: Demo Image Change index.php in ./www/site1/ for more testing.

HTTPS and HTTP/2

Demo include 2 sites:

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

127.0.0.1 www.site1.com
127.0.0.1 www.site2.com

Then you can visit from browser.

About

Docker LNMP (Nginx, PHP7/PHP5, MySQL, Redis)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 95.6%
  • Shell 3.9%
  • PHP 0.5%