Are You Afraid Of That Deploy Script?
With this guide, you can learn everything about deployments, Docker, Kubernetes, and how to use them with Laravel.
β 4.9 average rating. Read by 560+ happy developers.
introduction
About The Book
"DevOps with Laravel" is a 465-page guide that teaches you how to be better at infrastructure and architecture
Building CI/CD pipelines
nginx
cgi, FastCGI
FPM
Deploying Laravel projects without Docker or any orchestrator
Running queues and workers in production
Domains and HTTPS with nginx
Optimizing nginx, fpm, and workers
Backup and restore process with AWS S3
Dockerizing Laravel projects
Using docker-compose
Deploying Docker containers to production
GitFlow with Docker containers
Docker Swarm clusters in production
Monitoring and error tracking
Log management and dashboards with Grafana and fluentbit
Kubernetes and highly available clusters
Running a Laravel API, Vue SPA and workers in a k8s cluster
PaaS solutions
Serverless functions
AWS Lambdas, API gateway, S3
DigitalOcean App Platform
DigitalOcean Kubernetes clusters
Managed databases
Load balancers from scratch
All of the above by deploying a Laravel app with components such as an API, Vue frontend, MySQL database, Redis queue, multiple queues and worker processes, scheduler.
Fundamentals and Docker
You'll learn how nginx, cgi, fpm works. How to deploy Laravel apps to a VPS using a CI/CD pipeline. How to dockerize Laravel apps.
Docker Swarm
Run your apps on 100-machine clusters by just learning a few new command with Swarm.
Kubernetes
Run your apps on 100-machine clusters using k8s. You'll learn the most important things in great detail.
PaaS and Functions
Use the serverless framework to deploy to AWS Lambda and PaaS solutions that don't require servers at all.
What's inside
Table of Contents
In the book, we take a typical Laravel app with the following components: API, Vue SPA, MySQL database, Redis queue, multiple worker processes, scheduler. Then we prepare it for production and deploy it using different techniques. We start with simple shell scripts then move on to Docker and containers all the way to Kubernetes and serverless solutions.Read the full Table of contents here
Fundamentals and docker
234 pages
Building a pipeline
nginx
Deployment
Queues and workers
Domains and HTTPS with nginx
Backups and restore with AWS S3
Docker
docker-compose
Deploying Docker containers to production
GitFlow pipeline with containers
Docker Swarm
82 pages
State
Basic concepts
Workers, managers, and leaders
Creating a cluster
Application-level changes
Deploying a stack
Service placements
Scaling services
Health checks
Restarting services
Updating services
Rolling back services
Deployment
Monitoring and error collecting
Log management and dashboards
Kubernetes
92 pages
Introduction
Creating a cluster
Managed databases
Deploying a Laravel API
Deploying nginx
Communication between nginx and FPM
Deploying a worker
Deploying a scheduler
Deploying a frontend
Running migrations in a cluster
Caching configs
Liveness and readiness probes
Autoscaling pods
Rolling update config
Resource requests and limits
Health check pods
Exposing the application
Deploying the cluster from a pipeline
Monitoring the cluster
serverless
39 pages
Introduction
Platform-as-a-service
Serverless functions
The architecture of a code review tool
Serverless Laravel on AWS
The serverless framework
bref
Get A Free Chapter
Download a 72-page sample chapter and take a look at it
Feedback
What Are People Saying
This one is a must have. I am learning so much, i feel like superman now, and i am not even at half way yet ππΎ https://t.co/eCRjCXM7Sx
— Josny J. SΓ©vΓ¨re (@josnyS) February 1, 2024
As usual @mmartin_joo very good book, without waste!
— JosΓ© Casique (@jcasique_torres) September 6, 2023
I have enjoyed this book, more clarified knowledge on nginx, supervisors, github actions, before I didn't understand anything, am heading to docker now and I feel satisfied, thanks @mmartin_joo π
— Alvine2200 (@LlavuAlvine) October 10, 2023
Yes I really do. I've not read a book for up to 2 hours without getting exhausted, but I read you books for more than 2 hours and I usually have to force myself to stop. Thanks a lot, with the help of your materials, my Laravel skills are going to the next level.
— Obinna Elvis O. (@obinnaelviso) July 10, 2023
Wow, what a detailed explanation of supervisor and of course laravel Queue with deployment configuration.
— Darshan Sheta (@darshansheta) September 5, 2023
This is great! Congrats π
— Job Haunter π€·βοΈ (@chijid1) August 23, 2023
Nice read Martin, thanksπ₯
— grunn.eth (@developerjordy) August 16, 2023
I agree! Martin's content is always a good read π
— Ash Allen π (@AshAllenDesign) August 24, 2023
π DevOps with Laravel by @mmartin_joo
— Joseph Oluwayomi Ajibodu (@joseph_ajibodu) August 17, 2023
My anticipation for the book is so high that I'd love to have it in print (if budget safe though)
His articles have been helpful, how much more his book.#laravel #DevOps
This is a well articulated gem
— Knight Yoshi (@KnightYoshi) March 31, 2022
I love how real life your work is...
— Joseph (@josephkeilan) March 25, 2022
Nice explanation, thanks for sharing
— vijay savakhande (@vijaysavakhande) September 5, 2023
Awesome post :) love php
— Lorenzo Casponi π¨π» (@LCasponi) September 5, 2023
You are the best software engineering writer that I have ever really enjoyed. So interesting that I don't even know when the book ends
— new folder. (@sonofarinze) July 25, 2023
The Laravel community has some awesome people who share great knowledge with us all.
— Mohammad Emran β‘οΈ (@phpfour) August 24, 2023
Today, I want to mention one of them whom I admire a lot: @mmartin_joo
He writes in-depth books on Laravel and shares many gems from those books as long-form articles & tips!
A must-follow ππ» pic.twitter.com/oo2Jnt6yLp
I just finished reading the chapter on NGINX from the DevOps with Laravel book.
— IAmErnest (@woeli_) October 29, 2023
A wealth of information @mmartin_joo has put in there.
Clear, concise (and verbose when needed) writing.
I know soo much now about NGINX server configuration.
Just purchased my pdf premium package version, now to get stuck in reading it!
— Adam Thomas (@aptcreatedesign) August 31, 2023
Great to see the included code files too!
The article is just amazing Martin. I'm working on a Docker setup and some of the things really helped me. Keep it up πͺ.
— Chinmay Purav (@chinmay_purav) August 16, 2023
@mmartin_joo I'm really impressed by your work and your content. I thing you have one of the best newsletters of the community. I need to spread the word. BTW, I'm checking all the books you have been published, but mostly DDD.
— Ricardo Vargas / Software Engineer (@ricardovdev) September 5, 2023
Canβt wait to read this https://t.co/7NchGxX9w5
— SweetBoy (@__kwesiKod) July 10, 2023
So educative and well structured ! Your book deserves to sell well bro
— chris (@codedwebltd) April 30, 2022
Thank you for this, its awesome
— rashid collins (@collins_rashid) September 5, 2023
Shoutout to @mmartin_joo when it comes to producing valuable stuff this guy knows how to do it.
— Sami Samiuddin (@samifromsupreme) September 6, 2023
If youre a php dev or just a dev in generally go follow this guy. Even i jave learned few things from him π
Highly Recommend From @mmartin_joo ππ»βοΈhttps://t.co/gXZtSDAUEg
— Elsayed Kamal π€ (@el_sayed85) October 2, 2023
Using Docker and Laravel? Check this out! https://t.co/NQWGgHmI26
— Christoph Rumpel π€ (@christophrumpel) August 16, 2023
Yes sir! I'm coding a Laravel App, and I was wondering how to deploy it professionally without Forge. I liked your DDD book as well, so it was a no-brainer!
— Rick Vega (@rickvegac) September 29, 2023
this latest tutorial from @mmartin_joo on Server monitoring is the article I never thought I needed.
— Aduramimo (@dreywandowski) September 1, 2023
Will be testing my hands out on these packages over the weekend. Thanks for sharing! pic.twitter.com/SvaO0L4mBV
It is indeed a piece of knowledge to keep within easy reach, the first part is very complete and useful, easy to read and well explained
— Pablo Villalba π (@aluntringad) August 24, 2023
Your books are amazing, I'm yet to read DDD though
— Timtech (@Timtech17) July 10, 2023
Great work βπΎ
— Stanl Justn (@Stanl_Justn) August 17, 2023
Spectacular
— AL - I Serve God For A Living π (@VimKanzo) April 6, 2022
Can't wait to read it! β€οΈ
— MKIncognitO (@mkincognito) August 29, 2023
Impressive! That's a thorough explanation of both the supervisor and, of course, Laravel Queue with deployment configuration.
— Ahmed (@DoOPpelganGerr) September 6, 2023
Totally underrated and useful thread.
— Fernando J. Martin (aka Pampa) (@pampawebdev) November 15, 2023
Thanks Martin! https://t.co/0TybwpObsw
kubernetes and serverless
Premium Package
The 465-page extended book in PDF format
7 example projects
A 92-page chapter on Kubernetes
Deploy k8s clusters from CI/CD pipelines
Run managed databases
Terraform in 22-pages
A 39-page chapter about PaaS and serverless solutions
Deploy Laravel apps to AWS Lambda functions
The system design of a fully serverless production-grade code review SaaS application
Load balancers from scratch.
An 82-page chapter dedicated to Docker Swarm
Teaches you how to run and deploy 100-machine clusters using CI/CD pipelines
Log management with Grafana and fluentbit
Resource monitoring and error tracking
Fundamentals and Docker
Long-term updates included! Do you miss a topic from the book? Just send me a mail and I might cover it in a future update.
Read the full table of contents here
Regular Price $199
DOcker swarm
Plus Package
The 316-page extended book in PDF format
5 example projects
A 82-page chapter dedicated to Docker Swarm
Teaches you how to run and deploy 100-machine clusters using CI/CD pipelines
Log management with Grafana and fluentbit
Resource monitoring and error tracking
Fundamentals and Docker
Long-term updates covering new topics not included :(
Regular Price $79
fundamentals and docker
Basic Package
The 234-page book in PDF format
Fundamentals and Docker
3 example projects
Long-term updates covering new topics not included :(
Who Am I?
π Hey!I'm Martin Joo, a PHP developer since 2012. I'm also a content creator, blogger, and author of:
Domain-Driven Design with Laravel
Microservices with Laravel
Laravel Concepts
Test-Driven APIs with Laravel and Pest
Laravel Eloquent Recipes
Proper API Design with Laravel
Common Mistakes in Laravel
As you can see, I really love Laravel. I'm also sharing everything I know about development on Twitter.
Related Articles
Frequently Asked Questions
Do you offer a money-back guarantee?
Yes, for 30 days! Just reach out to me at martin@martinjoo.dev, and you'll get your money back. I'll only ask you why didn't you like the product.
Can I upgrade from one package to another later?
Yes! Just drop me an e-mail at martin@martinjoo.dev, and I'll create you a discount code, so you only have to pay the difference between the two packages.
Is there an epub or mobi format?
Right now, every content ships in PDF format. The reason is simple: each PDF contains a ton of code examples. These code examples look very nice in a PDF where I can use HTML to format the pages.epub and mobi kind of mess this up, so this is why I exported everything in PDF.However, if you cannot live without these formats, drop me an e-mail, and I can export a copy for you.
Published: 2023.09.12
Updated: 2023.10.10 (Load balancers from scratch)
Next update: 2023 November (Terraform)