About LNMP
LNMP Docker, from khs1994-docker, helps PHP developers stand up a Linux, Nginx, MySQL and PHP stack on containers with a single command, ./lnmp-docker up. It is powered by Docker Compose and aims to bring up a working environment in under two minutes, then reuse the same container approach for testing and production, including Kubernetes and Drone-based CI/CD.
Users put their PHP project, for example a Laravel app, in the app folder and add an Nginx config, with the project folder adjustable through a setting. The tool offers wrapper commands for PHP, Composer, PHPUnit and Laravel, SSL certificates through acme.sh including self-signed ones, listing and managing containers, and building your own images from the Dockerfiles. The README warns not to edit files other than the environment file and notes that running Laravel on Docker for Windows can be slow. Most documentation is in Chinese, with a note about registry mirrors for users in China.
It runs on Windows 10 with WSL, Linux, macOS and ARM Debian devices and needs Git, Docker and Docker Compose 2.17 or newer. LNMP Docker is licensed under Apache-2.0.
Key features
- One-command LNMP stack with Docker Compose
- Wrappers for PHP, Composer and PHPUnit
- Laravel-friendly project layout
- SSL certificates via acme.sh
- Kubernetes and Drone CI support
- Self-build Docker images
Good fit for
- Local PHP development environments
- Container-based testing and deployment for PHP
LNMP: questions and answers
- What is LNMP used for?
- LNMP Docker is a Docker Compose setup that starts a PHP development stack with Nginx and MySQL in about two minutes and extends to production and CI. It is a good fit for local PHP development environments, and container-based testing and deployment for PHP.
- Is LNMP open source?
- Yes. LNMP is open source under the Apache-2.0 licence. Its source code is on GitHub at khs1994-docker/lnmp.
- Is LNMP free?
- Yes. LNMP is open source, so the software itself is free to use.
- What are some alternatives to LNMP?
- Similar open-source tools in the Developer Tools category include Vagrant, Distrobox and Laravel Telescope. SaaS products in the same category include PhpStorm, Laravel Shift and PHPStorm - PHP Tools for Visual Studio.
- Is LNMP actively maintained?
- Yes. The most recent commit to LNMP was on 11 November 2026, and the latest release is v24.11.0, published on 24 August 2025. The project has 668 stars on GitHub.
Open-source alternatives to LNMP
See all
Vagrant
Developer Tools
Vagrant is a tool for building and distributing development environments.
OSSvs OrbStack★ 27k
Distrobox
Developer Tools
Use any linux distribution inside your terminal. Enable both backward and forward compatib
GPL-3.0★ 13k
Laravel Telescope
Developer Tools
An elegant debug assistant for the Laravel framework.
MIT★ 5.2k
IT Tools
Developer Tools
Collection of handy online tools for developers, with great UX.
GPL-3.0★ 41kwitr
Developer Tools
Why is this running? Trace any process, port, container, or file back to what started it -
Apache-2.0★ 23kApprise
Developer Tools
Apprise - Push Notifications that work with just about every platform!
BSD-2-Clausevs Courier★ 18k
SaaS alternatives to LNMP
See all
PhpStorm
Developer Tools
JetBrains IDE for PHP and web development
SaaS
Laravel Shift
Developer Tools
Automated Laravel application upgrades
SaaS
PHPStorm - PHP Tools for Visual Studio
Developer Tools
PHP development environment for Visual Studio and VS Code
SaaS
Codacy
Developer Tools
Automated code quality and security analysis for pull requests
SaaS
CommitFlow
Developer Tools
Automates scheduled GitHub repository maintenance and Markdown changelog updates
SaaS
Device Ports
Developer Tools
Desktop app to discover, run and monitor local projects, services, ports and logs
SaaS

