garylab/dnmp has 4,086 GitHub stars and 1,401 forks. GitHot measured +1 stars in 24 hours and 0 in 7 days. Last checked 2026-11-11 13:49 UTC. Last push 2026-10-31.
Docker LNMP (Nginx, PHP7/PHP5, MySQL, Redis)
Measured star growth
- in 24h
- +1
- in 7 days
- 0
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README-en.md
OriginalDocker deploying Nginx MySQL PHP7/PHP5.6/PHP5.4 in one key, support full feature functions.
1. Feature
- Completely open source.
- Support Multiple PHP version(PHP5.4, PHP5.6, PHP7.0, PHP7.1, PHP7.2, PHP7.3) switch.
- Support Multiple domains.
- Support HTTPS and HTTP/2.
- PHP source located in host.
- MySQL data directory in host.
- All conf files located in host.
- All log files located in host.
- Built-in PHP extensions install commands.
- Promise 100% available.
- Supported any OS with docker.
2. Usage
- Install
git,dockeranddocker-compose; - Clone project:
$ git clone https://github.com/yeszao/dnmp.git - Add current user to group
docker:$ sudo gpasswd -a ${USER} docker - Start docker containers:
$ cd dnmp $ cp env.sample .env $ cp docker-compose.sample.yml docker-compose.yml $ docker-compose up - Go to your browser and type
http://localhost, you will see:

The index file is located at ./www/localhost/index.php.
3.Multiple php version
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 use PHP7, Nginx fastcgi_pass is:
fastcgi_pass php:9000;
To use PHP7, change it:
fastcgi_pass php54:9000;
Then reload nginx:
$ docker exec -it nginx nginx -s reload
Done.
4.Use composer
We will always use composer in host.
On host, Create a folder for saving composer config file and cache:
mkdir ~/dnmp/composer
Open ~/.bashrc, add:
composer () {
tty=
tty -s && tty=--tty
docker run \
$tty \
--interactive \
--rm \
--user $(id -u):$(id -g) \
--volume ~/dnmp/composer:/tmp \
--volume /etc/passwd:/etc/passwd:ro \
--volume /etc/group:/etc/group:ro \
--volume $(pwd):/app \
composer "$@"
}
Make this script affect:
source ~/.bashrc
Thats all, use composer:
cd ~/dnmp/www/
composer create-project yeszao/fastphp project --no-dev
License
MIT
Explore related projects
Asabeneh/30-Days-Of-Python
The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,560 starsgrafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
77,830 starsredis/redis
For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.
77,395 starsapache/superset
Apache Superset is a Data Visualization and Data Exploration Platform
75,473 stars