12 Factors Laravel
summary
Shows how to apply the 12-factor app principles to a Laravel project by containerizing with Docker and isolating dependencies with Composer. Covers concrete tooling and architecture: docker-compose, Docker image builds, Docker Swarm orchestration, MySQL and Redis containers, nginx + php-fpm, supervisor for background processes, .env-based config injection, stdout log streaming, and one-off artisan containers. Demonstrates building images, deploying and scaling to 10 replicas, and performing graceful shutdowns so deployments work reliably.
AI-written summary · about
chapters (14)
- 0:0012 Factor Laravel intro
- 2:57Codebase single repo
- 4:20Dependencies isolation
- 7:58Config with env vars
- 11:20Backing services external
- 14:45Docker lifecycle
- 18:53Stateless processes
- 21:02Port binding exposure
- 24:19Horizontal scaling Swarm
- 32:21Disposability fast start
- 36:33Dev/prod parity Docker
- 40:07Logs centralized
- 45:06Admin one-off commands
- 47:32Q&A
related talks
41mTwelve-Factor Apps
23m12 Factor Frontend Apps through Dockerization
42mKickass Laravel Development with Docker
17mDeploying Laravel from dev to production
24mTwelve Factor App
37mCI/CD for Laravel Applications: Automate, Optimize and Scale
47m"Modulitiche" Applications
48mMigrating a 15 Year Old Enterprise Application to Laravel: Lessons Learned and Opportunities Gained
