Skip to content
/ dnmp Public
forked from yeszao/dnmp

Docker LNMP (Linux, Nginx, PHP, MySQL, Redis)

License

Notifications You must be signed in to change notification settings

aiddroid/dnmp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnmp

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

Demo Image

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 project:
    $ git clone https://github.com/yeszao/dnmp.git
    
  3. Start docker containers:
    $ docker-compose up
    
    You may need use sudo before this command in Linux.
  4. Go to your browser and type localhost, you will see:

Demo Image

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

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):

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

Then you can visit from browser.

About

Docker LNMP (Linux, Nginx, PHP, MySQL, Redis)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 78.3%
  • HTML 21.7%