# dnmp **Repository Path**: zhushaolong/dnmp ## Basic Information - **Project Name**: dnmp - **Description**: DNMP: Full-featured Docker LNMP (multi-domain, HTTPS, HTTP/2 ...) - **Primary Language**: Shell - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-11-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dnmp Docker deploying Nginx MySQL PHP7 in one key, support full feature functions. ![Demo Image](./dnmp.png) ### 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 ``` 4. Start docker containers: ``` $ docker-compose up ``` You may need use `sudo` before this command in Linux. 5. Go to your browser and type `localhost`, you will see: ![Demo Image](./snapshot.png) The index file is located in `./www/site1/`. ### HTTPS and HTTP/2 Default demo include 2 sites: * http://www.site1.com (same with http://localhost) * https://www.site2.com 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.