Skip to content

Kévin Dunglas

Founder of Les-Tilleuls.coop (worker-owned cooperative). Creator of API Platform, 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

Subscribe to this blog

Recent Posts

  • API Platform for Laravel
  • Containerization Tips and Tricks for PHP apps
  • Front-end application development, Symfony-style(s)
  • Running Laravel Apps With FrankenPHP (Laracon EU)
  • PHP and Symfony Apps As Standalone Binaries

Top Posts & Pages

  • API Platform for Laravel
  • JSON Columns and Doctrine DBAL 3 Upgrade
  • FrankenPHP: The Modern Php App Server, written in Go
  • Symfony's New Native Docker Support (Symfony World)
  • Front-end application development, Symfony-style(s)
  • Running Laravel Apps With FrankenPHP (Laracon EU)
  • Containerization Tips and Tricks for PHP apps
  • 6x faster Docker builds for Symfony and API Platform projects
  • Generate a Symfony password hash from the command line
  • Webperf: Boost Your PHP Apps With 103 Early Hints

Persistence in PHP with the Doctrine ORM

Persistence in PHP with the Doctrine ORM

Tags

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

Archives

Categories

  • DevOps (29)
  • Mercure (7)
  • Opinions (91)
  • Programming (197)
    • Android (5)
    • Go (15)
    • JavaScript (46)
    • PHP (154)
      • API Platform (70)
      • Laravel (1)
      • Symfony (95)
    • Python (14)
      • Django (5)
  • Security (15)
  • SEO (25)
  • Talks (45)
  • Ubuntu (68)
  • Wordpress (6)

Social

  • Mastodon
  • Twitter
  • LinkedIn
  • YouTube
  • GitHub

Links

  • API Platform
  • Les-Tilleuls.coop
  • Mercure.rocks
  • Vulcain.rocks
© 2024 Kévin Dunglas | Powered by Minimalist Blog WordPress Theme