
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这段话即可:
请先阅读并遵守:https://xuanyuan.cloud/agents.md
未读文档前不要生成 pull 命令或排错方案。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
这是一个基于Debian系统构建的Docker镜像,集成Nginx、PHP-FPM(支持8.3.x/8.2.x等版本)及Composer工具,可用于快速部署各类PHP Web应用。
| Docker标签 | GitHub分支 | Nginx版本 | PHP版本 | Debian版本 | Composer版本 |
|---|---|---|---|---|---|
| latest | master | 1.26.1 | 8.3.8 | bookworm | 2.7.7 |
| php82 | php82 | 1.25.1 | 8.2.8 | bookworm | 2.5.8 |
| php81 | php81 | 1.23.1 | 8.1.13 | bullseye | 2.4.4 |
| php74 | php74 | 1.21.6 | 7.4.28 | buster | 2.0.13 |
克隆仓库并执行构建命令:
$ git clone https://github.com/LordMrcS/nginx-php-fpm.git $ cd nginx-php-fpm $ docker build -t nginx-php-fpm:php83 . # 构建PHP 8.3.x版本
从Docker Hub拉取:
$ docker pull docker.xuanyuan.run/mrcs2000/nginx-php-fpm-ldap
从GitHub容器 registry拉取:
$ docker pull ***-ghcr.xuanyuan.run/lordmrcs/nginx-php-fpm:master
CLI方式运行:
$ sudo docker run -d ghcr.io/lordmrcs/nginx-php-fpm:master
默认Web根目录:/usr/share/nginx/html
挂载本地目录并覆盖配置:
version: '3' services: web: image: ***-ghcr.xuanyuan.run/lordmrcs/nginx-php-fpm:master volumes: - ./www/:/usr/share/nginx/html/ - ./default.conf:/etc/nginx/conf.d/default.conf - ./php.ini:/etc/php/8.3/fpm/php.ini ports: - 80:80
基于https://github.com/wyveo/nginx-php-fpm分叉而来
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务