Benjamin Crozat "What if you cut code review time & bugs in half, instantly?" Start free for 14 days→

danielpetrica.com

A production-ready Laravel setup with Traefik and FrankenPHP →

Looking to take Laravel to production with Docker? This guide by Daniel Petrica shows a clean path using Traefik as the reverse proxy and FrankenPHP to run PHP fast and lean.

It walks through a simple, repeatable setup. You get HTTPS, routing, and zero downtime deploys. Caching and queues are covered too, so your app stays quick under load.

I liked how the services are split, and how health checks and logs fit in. It is easy to follow, even if you are new to Traefik or FrankenPHP.

Here is a tiny taste of the wiring with Traefik labels:

services:
  app:
    image: dunglas/frankenphp
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.app.rule=Host(`example.com`)"
      - "traefik.http.routers.app.entrypoints=websecure"
      - "traefik.http.routers.app.tls.certresolver=letsencrypt"

If you want a practical blueprint for Docker, Laravel, Traefik, and FrankenPHP, this piece is a great start. It helps you ship with confidence, without a ton of guesswork.

Read more on danielpetrica.com →


Did you like this article? Then, keep learning:

Help me reach more people by sharing this article on social media!

0 comments

Guest

Markdown is supported.

Hey, you need to sign in with your GitHub account to comment. Get started →

Great tools for developers

Search for posts and links

Try to type something…