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
- Tags
- lnmp
- docker-compose
- php
- laravel
- nginx
- devops
- docker
- development-environment
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 PHP Insights. SaaS products in the same category include PhpStorm, Codacy and GoLand.
- Is LNMP actively maintained?
- Yes. The most recent commit to LNMP was on 2 October 2026, and the latest release is v24.11.0, published on 24 August 2025. The project has 674 stars on GitHub.
Open-source alternatives to LNMP
See all
Vagrant
Developer Tools
Vagrant is a tool for building and distributing development environments.
OSS★ 27k
Distrobox
Developer Tools
Use any linux distribution inside your terminal. Enable both backward and forward compatib
GPL-3.0★ 13kPHP Insights
Developer Tools
🔰 Instant PHP quality checks from your console
MIT★ 5.6k
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★ 41k
golangci-lint
Developer Tools
Fast linters runner for Go
GPL-3.0★ 19k
SaaS alternatives to LNMP
See all
PhpStorm
Developer Tools
JetBrains IDE for PHP and web development
SaaS
Codacy
Developer Tools
Automated code quality and security analysis for pull requests
SaaS
GoLand
Developer Tools
JetBrains IDE for Go development
SaaS
Termius
Developer Tools
SSH client and terminal for desktop and mobile with synced hosts
SaaS
1DevTool
Developer Tools
Desktop workspace for running several AI coding agents side by side across multiple projects
SaaS
3 Pixel Grid
Developer Tools
Library of tiny animated 3x3 grid indicators with copyable configs for use in your own project
SaaS

