Production-ready Laravel Docker Setup

This page summarizes the projects mentioned and recommended in the original post on /r/laravel

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • docker-php

    🐳 Production-ready Docker images for PHP. Optimized for Laravel, WordPress, and more!

    Looks great! Very similar to what we are doing. I just recently open-source our production Docker images: https://github.com/serversideup/docker-php/

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • docker-php-nginx

    Docker image with PHP-FPM 8.3 & Nginx 1.26 on Alpine Linux

    I think I found a decent starting point: https://github.com/TrafeX/docker-php-nginx

  • laravel-docker-production

    I then tweaked the nginx configs to point to /public/index.php and added php8-tokenizer to the build. I spun up a fresh install with this image and it seems to be working great. This is my Larvel-ized version: https://github.com/christopherarter/laravel-docker-production

  • s6-overlay

    s6 overlay for containers (includes execline, s6-linux-utils & a custom init)

    The one thing I am working on is swapping out Supervisor for S6. S6 has some better advantages on relaying "process information" to Docker. They also do a good job addressing people so say putting more than one process in a container is not "The Docker Way": https://github.com/just-containers/s6-overlay#the-docker-way

  • php-docker

    Docker Official Image packaging for PHP

    Using fastcgi_pass web:9000;, web resolves using the hostfile to the container IP, and 9000 is the FPM port set by the PHP-FPM docker image https://github.com/docker-library/php/blob/master/7.4/buster/fpm/Dockerfile#L258

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Install PHP, Composer and other tools on container with Alpine Linux.

    1 project | /r/drupal | 19 Jul 2021
  • Why pinning your dependency versions matters

    2 projects | dev.to | 12 Nov 2024
  • Deploy Kafka connector on GKE cluster

    2 projects | dev.to | 14 Oct 2024
  • 🚀 Primeros Pasos con Moodle: Crea tu Plataforma E-Learning en un Proyecto Local

    1 project | dev.to | 23 Aug 2024
  • Securing CouchDB with Keycloak Behind Nginx Reverse Proxy – Part 1

    2 projects | dev.to | 20 Jun 2024

Did you konow that Dockerfile is
the 35th most popular programming language
based on number of metions?