/dnmp

DNMP: Full-featured Docker LNMP (multi-domain, HTTPS, HTTP/2 ...)

Primary LanguageShellMIT LicenseMIT

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.