# serversideup/docker-php

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

Repository: https://github.com/serversideup/docker-php
Canonical: https://ross.abutalabs.com/products/docker-php
Homepage: https://serversideup.net/open-source/docker-php/
Language: Shell
License: GPL-3.0
License Family: copyleft
Topics: php, docker, docker-image, laravel, nginx
Last push: 2026-08-07T18:44:15+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 95, longevity 100
- inputs: {"age_days": 2004, "days_push": 26, "days_rel": 36, "gap_med": 7, "n_releases_24m": 28}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2493, forks 201 (observed 2026-08-28T04:06:56.585888+00:00)

## What it is
serversideup/php is a set of production-ready Docker images for PHP, built on the official PHP images with security hardening, health checks, and Laravel/WordPress optimizations. It ships multiple variants (CLI, FPM, FPM+NGINX, FPM+Apache, FrankenPHP) configurable via environment variables.

## Use cases
- dockerize a laravel application for production
- run wordpress in a secure php container
- deploy php app to kubernetes with health checks
- run php-fpm with nginx in docker
- try frankenphp instead of php-fpm
- run php containers as non-root user
- centralize php container logs to stdout

## When to choose
- you want production-grade PHP Docker images with secure defaults and health checks out of the box
- you deploy Laravel or WordPress and want built-in automations for migrations, queues, and Horizon
- you need multiple runtime variants (CLI, FPM, NGINX, Apache, FrankenPHP) from one consistent image family

## When to avoid
- you need a minimal custom image and prefer building your own Dockerfile from the official PHP base
- you run a non-PHP stack or need exotic PHP extensions not included in these images
- you require a license more permissive than GPL-3.0

## Facets
- artifact type: infra-config
- maturity: active
- function: deployment, http-server, container-runtime, developer-tools
- domain: web-development, backend, self-hosted
- platform: cloud, self-hosted
- tags: php, docker-images, laravel, wordpress, fpm, nginx, frankenphp, s6-overlay, production-ready, devops, containers, docker, kubernetes, linux

## Member repositories
- serversideup/docker-php (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:56.585888+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:27:36.913515+00:00, confidence not recorded.
  - readme: https://github.com/serversideup/docker-php (fetched 2026-08-28T04:06:56.585888+00:00, sha 7d8ae11ae2b8)
  - homepage: https://serversideup.net/open-source/docker-php/ (fetched 2026-08-29T10:09:31.013402+00:00, sha 3df4f6d27b4f)
  - site_page: https://serversideup.net/open-source/docker-php/docs/getting-started (fetched 2026-08-29T10:09:31.016148+00:00, sha 166f027a0e53)
  - site_page: https://serversideup.net/open-source/docker-php/docs/getting-started/installation (fetched 2026-08-29T10:09:31.017967+00:00, sha 11c155045058)
- Data as of 2026-08-30T08:39:29.467469+00:00.
