serversideup/php

Sponsored OSS

By Server Side Up

Updated 2 days ago

Production-ready PHP Docker images optimized for Laravel and WordPress.

Image
Developer tools
Web servers
61

1M+

serversideup/php repository overview

Docker Images Logo

Build Status License Support us
Docker Hub Pulls Discord

Introduction

Production-ready PHP Docker images built on official PHP. Optimized for Laravel, WordPress, and modern PHP applications.

What Makes These Images Different?

serversideup/php takes the official PHP Docker images and adds everything you need for real-world production use:

  • Secure by Default - Runs as unprivileged user, not root
  • Zero Config Required - Production-ready defaults, customize with environment variables
  • Batteries Included - Composer, common extensions, and helpful utilities pre-installed
  • Framework Optimized - Special automations for Laravel (migrations, queues, Horizon, etc.)
  • Multiple Variations - CLI, FPM, FPM+NGINX, FPM+Apache, FrankenPHP
  • Modern Architecture - Native health checks, S6 Overlay, unified logging
Features
Production-ReadyNative Health ChecksHigh Performance
Customizable and FlexibleNative CloudFlare SupportBase on Official PHP
FrankenPHPUnified LoggingFPM + S6 Overlay

Getting Started

Try it in 2 minutes ⚡

Want to see how easy it is? Our installation guide walks you through creating your first PHP app with Docker:

  1. ✅ Run phpinfo() in your browser
  2. ✅ Upgrade PHP versions by changing one line
  3. ✅ Switch between variations (FPM, FrankenPHP, etc.)
  4. ✅ See environment variables in action

👉 Follow the quick start guide

Quick Example

Here's what a complete Laravel setup with NGINX + PHP 8.5 looks like:

services:
  php:
    image: serversideup/php:8.5-fpm-nginx
    ports:
      - "80:8080"
    environment:
      # Customize PHP with environment variables
      PHP_OPCACHE_ENABLE: "1"
      PHP_MEMORY_LIMIT: "512M"
      
      # Laravel automations (migrations, storage link, etc.)
      AUTORUN_ENABLED: "true"
    volumes:
      - .:/var/www/html

That's it. No complex configs. Just environment variables.

Ready to try it? Get started with our tutorial →

Available Image Variations

Choose the variation that fits your needs. All images follow the pattern:

serversideup/php:{{version}}-{{variation-name}}
VariationBest ForExample
cliCLI scripts, cron jobs, queuesserversideup/php:8.5-cli
fpmCustom web server setupserversideup/php:8.5-fpm
fpm-apacheApache-based deploymentsserversideup/php:8.5-fpm-apache
fpm-nginxStable and performant web serverserversideup/php:8.5-fpm-nginx
frankenphpModern, high-performance apps with worker modeserversideup/php:8.5-frankenphp
Supported PHP Versions & Platforms

Note

All images are available on [**Docker Hub**](https://hub.docker.com/r/serversideup/php/) and [**GitHub Packages**](https://github.com/serversideup/docker-php/pkgs/container/php).

We support PHP 7.4 through 8.5 with both Debian and Alpine base images.

Learn More About Choosing an Image →

⚙️ Variation🚀 Version
cliDebian Based
serversideup/php:8.5-cli
serversideup/php:8.4-cli
serversideup/php:8.3-cli
serversideup/php:8.2-cli
serversideup/php:8.1-cli
serversideup/php:8.0-cli
serversideup/php:7.4-cli
Alpine Based
serversideup/php:8.5-cli-alpine
serversideup/php:8.4-cli-alpine
serversideup/php:8.3-cli-alpine
serversideup/php:8.2-cli-alpine
serversideup/php:8.1-cli-alpine
serversideup/php:8.0-cli-alpine
serversideup/php:7.4-cli-alpine
fpmDebian Based
serversideup/php:8.5-fpm
serversideup/php:8.4-fpm
serversideup/php:8.3-fpm
serversideup/php:8.2-fpm
serversideup/php:8.1-fpm
serversideup/php:8.0-fpm
serversideup/php:7.4-fpm
Alpine Based
serversideup/php:8.5-fpm-alpine
serversideup/php:8.4-fpm-alpine
serversideup/php:8.3-fpm-alpine
serversideup/php:8.2-fpm-alpine
serversideup/php:8.1-fpm-alpine
serversideup/php:8.0-fpm-alpine
serversideup/php:7.4-fpm-alpine
fpm-apacheDebian Based
serversideup/php:8.5-fpm-apache
serversideup/php:8.4-fpm-apache
serversideup/php:8.3-fpm-apache
serversideup/php:8.2-fpm-apache
serversideup/php:8.1-fpm-apache
serversideup/php:8.0-fpm-apache
serversideup/php:7.4-fpm-apache
fpm-nginxDebian Based
serversideup/php:8.5-fpm-nginx
serversideup/php:8.4-fpm-nginx
serversideup/php:8.3-fpm-nginx
serversideup/php:8.2-fpm-nginx
serversideup/php:8.1-fpm-nginx
serversideup/php:8.0-fpm-nginx
serversideup/php:7.4-fpm-nginx
Alpine Based
serversideup/php:8.5-fpm-nginx-alpine
serversideup/php:8.4-fpm-nginx-alpine
serversideup/php:8.3-fpm-nginx-alpine
serversideup/php:8.2-fpm-nginx-alpine
serversideup/php:8.1-fpm-nginx-alpine
serversideup/php:8.0-fpm-nginx-alpine
serversideup/php:7.4-fpm-nginx-alpine
frankenphpDebian Based
serversideup/php:8.5-frankenphp
serversideup/php:8.4-frankenphp
serversideup/php:8.3-frankenphp
Alpine Based
serversideup/php:8.5-frankenphp-alpine
serversideup/php:8.4-frankenphp-alpine
serversideup/php:8.3-frankenphp-alpine
unit (deprecated)⚠️ NGINX is no longer maintaining NGINX Unit. We stopped providing updates for this image. Learn more →

Professional Support

Need help integrating Docker with your PHP application?

Resources

  • Website overview of the product.
  • Docs for a deep-dive on how to use the product.
  • Discord for friendly support from the community and the team.
  • GitHub for source code, bug reports, and project management.
  • Get Professional Help - Get video + screen-sharing help directly from the core contributors.

Contributing

As an open-source project, we strive for transparency and collaboration in our development process. We greatly appreciate any contributions members of our community can provide. Whether you're fixing bugs, proposing features, improving documentation, or spreading awareness - your involvement strengthens the project. Please review our contribution guidelines and code of conduct to understand how we work together respectfully.

Need help getting started? Join our Discord community and we'll help you out!

Our Sponsors

All of our software is free and open to the world. None of this can be brought to you without the financial backing of our sponsors.

Sponsors

Black Level Sponsors

Sevalla

Bronze Sponsors
No bronze sponsors yet. Become a sponsor →
Infrastructure Sponsors

This project requires significant computing power to build and maintain over 8,000 different Docker image tags. We're extremely grateful for the following sponsors:

Depot  Docker

Individual Supporters
aagjalpankaj  

About Us

We're Dan and Jay - a two-person team with a passion for open source products. We created Server Side Up to help share what we learn.

Dan Pastori
Jay Rogers


Find us at:

Tag summary

Content type

Image

Digest

sha256:a0f4447da

Size

203.4 MB

Last updated

2 days ago

docker pull serversideup/php:frankenphp

This week's pulls

Pulls:

57,198

Last week