Overview
- Full name
docker.io/phppm/nginx- Registry
- docker.io
- Namespace
- phppm
- Repository
- nginx
- Cached tags
- 8
- Last synced
- 07/05/2026, 07:39 AM
- Topics
Introduction
PHP-PM Nginx 高性能 PHP 应用服务器镜像,常驻 PHP Worker 替代 PHP-FPM,低延迟 PHP Web 服务运行时。
Details
phppm/nginx 集成 PHP-PM 与 Nginx,以常驻 PHP Worker 进程替代传统 PHP-FPM,降低请求启动开销。定位为高性能 PHP Web 运行时;高 QPS PHP API、Symfony/Laravel 低延迟部署或替代 PHP-FPM 的性能优化方案。
快速启动
docker run -d --name phppm \
-p 8080:8080 \
-v /path/to/app:/var/www/html \
docker.io/phppm/nginx:latest
推荐实践
docker run -d --name phppm \
--restart unless-stopped \
-p 8080:8080 \
-v /data/www:/var/www/html:ro \
-e PHP_PM_MAX_CHILDREN=20 \
docker.io/phppm/nginx:2.0
核心参数说明
-p 8080:8080— HTTP 服务端口-v .../html:...— PHP 应用代码PHP_PM_MAX_CHILDREN— Worker 进程数- 适用 — 无状态 PHP API 服务
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: phppm
spec:
replicas: 3
selector:
matchLabels:
app: phppm
template:
metadata:
labels:
app: phppm
spec:
containers:
- name: phppm
image: docker.io/phppm/nginx:2.0
ports:
- containerPort: 8080
env:
- name: PHP_PM_MAX_CHILDREN
value: "20"
---
apiVersion: v1
kind: Service
metadata:
name: phppm
spec:
selector:
app: phppm
ports:
- port: 80
targetPort: 8080
HPA 按 CPU 扩缩;代码通过 PVC/InitContainer 注入。
Latest tags (20)
View all 8 tags →| Tag | Arch | Pushed At | Size | Digest | Sync | Wish | Action |
|---|---|---|---|---|---|---|---|
docker.io/phppm/nginx :latest | linux/amd64 | 2020/12/03 15:36 | 30.4 MB | sha256:a9542f3373f6… | |||
docker.io/phppm/nginx :2.0.3-2 | linux/amd64 | 2020/04/23 14:23 | 30.3 MB | sha256:f89886e1723f… | |||
docker.io/phppm/nginx :2.0.3 | linux/amd64 | 2020/01/22 04:17 | 31.0 MB | sha256:a8cad3f4cfc5… | |||
docker.io/phppm/nginx :2.0 | linux/amd64 | 2020/01/22 04:17 | 31.0 MB | sha256:a8cad3f4cfc5… | |||
docker.io/phppm/nginx :1.0.3 | linux/amd64 | 2018/08/03 14:32 | 29.6 MB | sha256:a5fab523154b… | |||
docker.io/phppm/nginx :1.0.1-2 | linux/amd64 | 2018/02/10 08:53 | 28.1 MB | sha256:9a6be4a317fb… | |||
docker.io/phppm/nginx :1.0.1 | linux/amd64 | 2018/01/09 22:18 | 28.1 MB | sha256:1b96765ad7b0… | |||
docker.io/phppm/nginx :1.0 | linux/amd64 | 2018/01/08 10:20 | 27.6 MB | sha256:b63948b09d9c… |