Docker, Kubernetes, and PHP: Laravel Edition

β€’ 163 min watch

Meet the Cast

David Flanagan HOST

David Flanagan

@rawkode

Weekly Cloud Native insights

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
01:30 - Introductions
04:30 - Looking at Flarum
10:00 - Switching to pingcrm (Thanks @bowersbros)
14:00 - How specific should I be with container images?
17:00 - Adding MariaDB to docker-compose.yml
19:30 - Adding nginx and fpm to docker-compose.yml
24:00 - Dependencies and health-checks for docker-compose.yml
33:00 - Fighting with .env
56:00 - Interactive development with a the Docker shell pattern (dshell)
1:02:00 - Add a multi-layer Dockerfile
1:04:00 - Adding PHP extensions to the container image
1:11:00 - Adding a Makefile to codify commands
1:21:40 - Fighting with nginx
1:40:00 - Deploying 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

Related Videos