带有PHP-FPM的Nginx
webdevops/php-nginx
https://hub.docker.com/r/webdevops/php plus Nginx. Nginx serves /app and passes PHP requests to PHP-FPM in the same container. Ports: 80 (HTTP) and 443 (HTTPS with a self-signed certificate).
Always use one of the tags below: an image without a tag (latest) and the alpine tag are old builds from 2019 and 2020 that get no updates, see https://github.com/webdevops/Dockerfile/blob/master/docs/known-issues.md#latest-and-alpine-tags-of-the-php-images.
Rebuilt every night for linux/amd64 and linux/arm64.
Tags
| Tag | Based on |
|---|---|
8.6 | Debian 13 |
8.5, 8.4, 8.3, 8.2 | Debian 12 |
8.6-alpine, 8.5-alpine, 8.4-alpine, 8.3-alpine, 8.2-alpine | Alpine |
Tags that are not listed here are no longer built and get no updates.
Quick start
yamlservices: app: image: webdevops/php-nginx:8.5 ports: - "8080:80" environment: WEB_DOCUMENT_ROOT: /app/public volumes: - ./:/app
Documentation
- https://github.com/webdevops/Dockerfile/blob/master/docs/images/php-nginx.md
- https://github.com/webdevops/Dockerfile/blob/master/docs/environment-variables.md
- https://github.com/webdevops/Dockerfile/blob/master/docs/customization.md
- https://github.com/webdevops/Dockerfile/blob/master/docs/known-issues.md
Source and issues: https://github.com/webdevops/Dockerfile
webdevops 命名空间的其他可用镜像:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 php-nginx 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务