Skip to content

Kévin Dunglas

Founder of Les-Tilleuls.coop (worker-owned cooperative). Creator of API Platform, FrankenPHP, Mercure.rocks, Vulcain.rocks and of some Symfony components.

Menu
  • Talks
  • Resume
  • Sponsor me
  • Contact
Menu

Containerization Tips and Tricks for PHP apps

Posted on May 28, 2024May 28, 2024 by Kévin Dunglas

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!

Related posts:

  1. Symfony’s New Native Docker Support (Symfony World)
  2. HTTP/2: speed up your apps and dispatch real time updates (Symfony and API Platform’s features announcement)
  3. Deploying Symfony and API Platform apps on Heroku easily
  4. Building Decentralized Web Apps with Solid and PHP

1 thought on “Containerization Tips and Tricks for PHP apps”

  1. Webtoniq says:
    May 30, 2024 at 6:35 am

    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!

    Reply

Leave a ReplyCancel reply

Social

  • Bluesky
  • GitHub
  • LinkedIn
  • Mastodon
  • X
  • YouTube

Links

  • API Platform
  • FrankenPHP
  • Les-Tilleuls.coop
  • Mercure.rocks
  • Vulcain.rocks

Subscribe to this blog

Top Posts & Pages

  • FrankenPHP: The Modern Php App Server, written in Go
  • Develop Faster With FrankenPHP
  • FrankenPHP 1.3: Massive Performance Improvements, Watcher Mode, Dedicated Prometheus Metrics, and More
  • JSON Columns and Doctrine DBAL 3 Upgrade
  • Securely Access Private Git Repositories and Composer Packages in Docker Builds
  • How to debug Xdebug... or any other weird bug in PHP
  • Preventing CORS Preflight Requests Using Content Negotiation
  • Symfony's New Native Docker Support (Symfony World)
  • Running Laravel Apps With FrankenPHP (Laracon EU)
  • PHP and Symfony Apps As Standalone Binaries

Tags

Apache API API Platform Buzz Caddy Docker Doctrine FrankenPHP Go Google GraphQL HTTP/2 Hydra hypermedia Hébergement Javascript JSON-LD Kubernetes La Coopérative des Tilleuls Les-Tilleuls.coop Lille Linux Mac Mercure Messagerie Instantanée MySQL performance PHP Punk Rock Python React REST Rock'n'Roll Schema.org Security SEO SEO Symfony Symfony Live Sécurité Ubuntu Web 2.0 webperf XHTML XML

Archives

Categories

  • DevOps (85)
    • Ubuntu (68)
  • Go (18)
  • JavaScript (46)
  • Mercure (7)
  • Opinions (91)
  • PHP (171)
    • API Platform (77)
    • FrankenPHP (10)
    • Laravel (1)
    • Symfony (97)
    • Wordpress (6)
  • Python (14)
  • Security (15)
  • SEO (25)
  • Talks (46)
© 2025 Kévin Dunglas | Powered by Minimalist Blog WordPress Theme