# TrafeX/docker-php-nginx

Docker image with PHP-FPM 8.5 & Nginx 1.30 on Alpine Linux

Repository: https://github.com/TrafeX/docker-php-nginx
Canonical: https://ross.abutalabs.com/products/docker-php-nginx
Homepage: https://hub.docker.com/r/trafex/php-nginx
Language: Dockerfile
License: MIT
License Family: permissive
Topics: php-fpm, docker, nginx-docker, nginx, php, containers, container, alpine-linux, php8, php8-docker, docker-image, composer, alpine, armv7, arm64, php84, php84-docker
Last push: 2026-08-24T22:33:52+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 51, longevity 100
- inputs: {"age_days": 3852, "days_push": 9, "days_rel": 168, "gap_med": 93, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1511, forks 762 (observed 2026-08-28T04:04:55.915353+00:00)

## What it is
A lightweight Docker image combining PHP-FPM 8.5 and Nginx on Alpine Linux, around 40MB in size. It runs services as a non-privileged user, supports multiple CPU architectures, and is designed to be simple to understand and customize.

## Use cases
- run a php web app in docker
- small nginx php-fpm container image
- host a php website on alpine linux
- serve php with nginx in a container
- lightweight docker base image for php apps
- multi-arch php docker image for arm

## When to choose
- you need a tiny, secure PHP-FPM + Nginx container for a PHP application
- you want a simple, well-maintained Alpine-based image that is easy to customize
- you need multi-architecture support including ARM devices
- you want a KISS example of running Nginx and PHP-FPM together in one container

## When to avoid
- you need a full-featured stack with databases, queues, or other services included
- you prefer separate Nginx and PHP-FPM containers orchestrated with Compose or Kubernetes
- your app requires PHP extensions not bundled in the image and heavy customization
- you need a framework-specific image with composer and dev tooling preinstalled

## Facets
- artifact type: infra-config
- maturity: active
- function: http-server, deployment, container-runtime, web-framework
- domain: web-development, self-hosted
- platform: cross-platform
- tags: docker-image, php-fpm, nginx, alpine-linux, php, supervisord, multi-arch, small-image, devops, containers, docker, linux, web-server

## Member repositories
- TrafeX/docker-php-nginx (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:55.915353+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-30T04:32:22.417610+00:00, confidence not recorded.
  - readme: https://github.com/TrafeX/docker-php-nginx (fetched 2026-08-28T04:04:55.915353+00:00, sha 55c71b0a1d4e)
  - homepage: https://hub.docker.com/r/trafex/php-nginx (fetched 2026-08-29T11:36:16.926735+00:00, sha 3a03cd0ca26b)
  - site_page: https://docs.docker.com/docker-hub (fetched 2026-08-29T11:36:16.935980+00:00, sha caaa18892709)
  - site_page: https://www.docker.com/docs (fetched 2026-08-29T11:36:16.937633+00:00, sha aeada2272712)
  - site_page: https://www.docker.com/company (fetched 2026-08-29T11:36:16.939233+00:00, sha 05ab59b2bc29)
- Data as of 2026-08-30T08:39:29.467469+00:00.
