Building PHP Applications with Docker, Docker Compose, and Kubernetes (RTFM with Rawkode)
Meet the Cast
HOST
David Flanagan
@rawkode
Stay ahead in cloud native
Tutorials, deep dives, and curated eventsโno fluff.
In this episode, joined by Ciaran McNulty, we take a look at the best practices for developing Laravel PHP applications with Docker, Docker Compose, and Kubernetes.
Our focus is on PHP applications run with nginx and php-fpm. This episode is a follow up to my "Kickass Development Environments with Docker" talk that I gave from 2016-2018.
Dubbed "The PHP Framework for Web Artisan", Laravel is a web application framework with expressive, elegant syntax. Weโve already laid the foundation โ freeing you to create without sweating the small things.
๐ฐ Timeline
00:00 - Holding screen
00:50 - Introductions
09:30 - Creating a Slim Framework application
14:50 - Checking out the docker-compose.yml ... oh, did I write this? ๐ฎ
30:15 - Adding a damn .editorconfig
31:15 - Replacing the PHP dev server with nginx and php-fpm
55:00 - Ditching compose 3.x for 2.x: leveraging complex dependencies with health-checks
1:11:00 - Adding a multi-layer Dockerfile for build cache goodness
1:29:00 - Deploying our application to Kubernetes
๐๐ปโโ๏ธ Want some help?
๐ฌ Leave a comment
๐ฆ Ping me on Twitter - https://twitter.com/rawkode
๐ Schedule some time during my office-hours - https://rawko.de/office-hours
๐ Links
Ciaran McNulty - https://twitter.com/CiaranMcNulty
Code from Tutorial - https://gitlab.com/rawkode/php-examples/-/tree/main/docker-and-kubernetes
Related Videos
Fuck you, Hashicorp ... an IBM Company.
HashiCorp archived the repo without warning. Here is why their excuse about "product market fit" is a lie.
Replace Your GitHub Actions YAML with CUE
Are you tired of copy-pasting YAML between repositories only to be bitten by typos after pushing?
MinIO, we won't miss you.
MinIO just announced maintenance mode for their community edition โ and honestly? Good riddance.
Relaunching Klustered ... with Heroku Vibes
Building and Launching a Marketing Page on Heroku with AI in Under 20 Minutes
Comments