laradock / laradock
git clone https://github.com/laradock/laradock.git
v20.4 · 3mo ago
🔥 on GitHub Trending today
Docker-based PHP development environment with pre-configured web servers, PHP-FPM, databases, caches, and other services for any PHP project.
Why you might care
Clone it into a PHP project and run one command to get a full local stack with Nginx, PHP-FPM, MySQL, Redis, and many more services, with a CLI that prints the docker compose commands it runs. Suits teams wanting identical environments across Linux, macOS, and Windows for Laravel, WordPress, Symfony, or similar apps.
+1
stars, 24h · #13,853
+6
stars, 7 days · #17,317
+21
stars, 30 days · #22,037
13k
★ total · +0% this week
4.3k
forks · 31 open issues
Star history (as recorded here)
LanguageDockerfile
LicenseMIT
Created2015-08-21 (11y ago)
Last push3d ago
Watchers301
OwnerOrganization
Seen on GitHub Trending
- 2026-10-23 — #9 daily in dockerfile · +5 ★
- 2026-10-23 — #8 monthly in dockerfile · +21 ★
- 2026-10-23 — #10 weekly in dockerfile · +6 ★
- 2026-10-22 — #7 monthly in dockerfile · +18 ★
- 2026-10-22 — #8 weekly in dockerfile · +1 ★
- 2026-10-21 — #7 monthly in dockerfile · +18 ★
- 2026-10-21 — #9 weekly in dockerfile · +2 ★
- 2026-10-20 — #7 monthly in dockerfile · +18 ★
- 2026-10-20 — #9 weekly in dockerfile · +2 ★
GitHub topics
dockerdocker-composedocker-compose-templatedocker-containerdocker-drupaldocker-environmentdocker-laraveldocker-nginx-phpdocker-symfonydocker-wordpresshacktoberfestlaradocklaravel-dockerlaravel-docker-composephpphp-containerphp-dockerphp-docker-imagephp-docker-imagesphp-environment
Links
- GitHub: github.com/laradock/laradock
- Homepage: https://laradock.io
- Releases · Issues · Hacker News mentions
README excerpt
🌐 Languages: English · 简体中文 · العربية · Español Use Docker First - Learn About It Later! ## Overview **Laradock is a full PHP development environment for Docker.** Clone it into any PHP project, run one command, and you have a complete local stack running. It ships pre-configured containers for everything a PHP application needs: a web server (Nginx), the PHP runtime (PHP-FPM), a database (MySQL), caching (Redis), background jobs (PHP Worker), search (Elasticsearch), mail testing (Mailpit), and 100+ additional services, all ready to use with zero manual configuration. Whether you're using the built-in **Laradock CLI** or plain Docker Compose, the same stack works with **any PHP project**, including Laravel, WordPress, Symfony, Drupal, Magento, 100+ other frameworks and applications, or plain PHP. Every developer gets the same environment on Linux, macOS, and Windows, eliminating setup differences and "works on my machine" problems. Laradock doesn't stop at local development. The same platform includes a developer-friendly CLI for managing your stack, plus built-in production deployment with `./laradock ship`, allowing you to package your application and deploy it to Kubernetes, Google Cloud Run, AWS ECS, your own server, and many more, without switching tools or rebuilding your environment. **The easiest way to run PHP on Docker.** Trusted by 100K+ developers, Laradock is free and open-source under the MIT license, and has been battle-tested in real-world PHP projects since 2015. ## Quick Start Requires Docker with Compose v2.20+. 1 - Clone Laradock inside your PHP project: [code] 2 - Enter the laradock folder: [code] 3 - Start your stack: [code] The first run opens a wizard: pick your framework, PHP version, stack, and the tools in your dev shell, then hit Enter. Every question comes with a sensible answer pre-selected, so you can hold Enter and get a working stack. After that, `start` just runs your stack and prints its URLs and credentials (`./laradock setup` reopens the wizard any time, to add a service, switch PHP version, or add a tool like Xdebug). 4 - Enter the Laradock Workspace (a dev shell with `php`, `composer`, `node`, and `git` inside): [code] Then open `http://localhost`. Done. The CLI is optional, transparent sugar: it prints every `docker compose` command it runs, keeps no state, and writes nothing but your `.env`. Unknown commands pass straight through (`./laradock logs -f nginx` = `docker compose logs -f nginx`). Full reference: CLI docs. Prefer plain Docker? Skip the CLI and run `docker compose` directly, same files, same result. See the manual setup guide. ## Key Features - **Any PHP Version**: Run any version from 5.6 to 8.5. Set `PHP_VERSION` in `.env`, rebuild, and you're on it. - **100+ Ready-made Services**: Databases, caches, queues, search engines, and more, pre-configured and waiting. - **All-in-One Dev Shell**: Run Artisan, Composer, Node, and any CLI inside the `workspace` container, nothing on host. - **
Blurb generated by claude-haiku-5-5 today. Star deltas marked ~ are extrapolated from partial history.