API Platform was one of the first PHP frameworks to provide native support for Docker, Docker Compose, Kubernetes, and, more recently, Skaffold.
The API Platform skeleton also served as the basis for Symfony Docker, the most popular solution for containerizing Symfony projects.
These years of developing skeletons compatible with dev environments, continuous integration chains, and production environments, as well as running containerized PHP applications of all sizes in prod, have enabled us to accumulate a wealth of experience in containerizing PHP applications.
In this conference (presented during AFUP Day Lille 2024), I share several tips and tricks I’ve learned over the last ten years!
Great post! Containerization has indeed transformed the deployment landscape for PHP apps. I appreciate the tip about optimizing Dockerfile layers to speed up build times and reduce image sizes. The section on managing environment variables securely was particularly insightful. Thanks for sharing these practical tips!