Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/yeszao/dnmp
Browse files Browse the repository at this point in the history
  • Loading branch information
jingmian committed Oct 14, 2019
2 parents 60381bf + c1b9d01 commit 1ca8779
Show file tree
Hide file tree
Showing 56 changed files with 3,840 additions and 865 deletions.
6 changes: 3 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
log/
mysql/
logs/
data/
www/
conf/conf.d/certs/
services/nginx/ssl/
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

*.png binary
*.jpg binary
*.tgz binary
*.tgz binary
*.zip binary
*.gz binary
34 changes: 0 additions & 34 deletions Dockerfile

This file was deleted.

13 changes: 6 additions & 7 deletions README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ Docker deploying Nginx MySQL PHP7/PHP5.6/PHP5.4 in one key, support full feature

**[[中文说明]](README.md)**

![Demo Image](./dnmp.png)

## 1. Feature
1. Completely open source.
2. Support Multiple PHP version(~~PHP5.4,~~ PHP5.6, PHP7.2) switch.
2. Support Multiple PHP version(PHP5.4, PHP5.6, PHP7.0, PHP7.1, PHP7.2, PHP7.3) switch.
3. Support Multiple domains.
4. Support HTTPS and HTTP/2.
5. PHP source located in host.
Expand Down Expand Up @@ -43,17 +42,17 @@ The index file is located at `./www/localhost/index.php`.
## 3.Multiple php version
Default, we create 3 php container, they are PHP7.2, PHP5.6 and PHP5.4,
Default, we create 3 php container, they are PHP7, PHP5.6 and PHP5.4,
We can change easy by modify Nginx configuration `fastcgi_pass`.
For example, [http://localhost](http://localhost) use PHP5.4, Nginx `fastcgi_pass` is:
For example, [http://localhost](http://localhost) use PHP7, Nginx `fastcgi_pass` is:
```
fastcgi_pass php54:9000;
fastcgi_pass php:9000;
```
To use PHP7.2, change it:
To use PHP7, change it:
```
fastcgi_pass php72:9000;
fastcgi_pass php54:9000;
```
Then reload nginx:
```bash
Expand Down
Loading

0 comments on commit 1ca8779

Please sign in to comment.