
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
一个用于轻松快速运行https://github.com/composer/satis%E7%9A%84Docker%E9%95%9C%E5%83%8F%E5%8F%8A%E9%85%8D%E7%BD%AE%EF%BC%8C%E5%8F%AF%E5%9C%A8%E5%87%A0%E7%A7%92%E9%92%9F%E5%86%85%E5%AE%8C%E6%88%90%E9%83%A8%E7%BD%B2%E3%80%82
该镜像集成以下组件:
PHP 8.1.1 (cli) (built: Dec 20 2021 21:35:13) (NTS)built with OpenSSL 1.1.1k 25 Mar 2021Composer version 2.2.3 2021-12-31 12:18:53bash# 复制环境变量模板 cp .env.dist .env # 复制Satisfy配置模板 cp config/parameters.satisfy.yml.dist config/parameters.satisfy.yml # 复制Satis配置模板 cp config/satis.json.dist config/satis.json # 启动服务 make start
默认配置文件satis.json内容如下:
json{ "name": "company/private-packagist", "homepage": "https:\/\/satis.domain.tld", "output-dir": "web", "output-html": true, "repositories": [ ], "require-all": true, "require-dependencies": true, "require-dev-dependencies": true, "include-filename": "include\/all$%hash%.json", "minimum-stability": "dev", "providers": false }
启动服务
bashmake start
停止服务
bashmake stop
移除服务
bashmake remove
查看服务状态
bashmake state
手动构建/ Web hook
http://satis.localhost/admin/satis/build
默认登录凭据:admin / foo
默认情况下,构建脚本每分钟执行一次,配置来自docker-compose:
yamlsatis: image: ypereirareis/docker-satis:3.4.0-debian-bullseye-php81-composer2 environment: # 每分钟执行一次 CRONTAB_FREQUENCY: "*/1 * * * *"
*/5 * * * *(每5分钟)或 */10 * * * *(每10分钟)CRONTAB_FREQUENCY=-1容器需要访问私有仓库的SSH密钥(可选SSH配置):
yamlsatis: image: ypereirareis/docker-satis:3.4.0-debian-bullseye-php81-composer2 volumes: # 挂载本地SSH密钥 - "~/.ssh/id_rsa:/var/tmp/id" # 挂载SSH配置(可选) - "~/.ssh/config:/var/tmp/sshconf"
警告:不建议将SSH密钥添加到自定义镜像中,这会导致密钥泄露风险。
私有仓库服务器的SSH指纹需要添加到容器的known_hosts文件,通过环境变量指定域名列表:
yamlsatis: environment: # 支持带端口的域名,如yourownserver.com:54322 PRIVATE_REPO_DOMAIN_LIST: bitbucket.org gitlab.com github.com yourownserver.com:54322
为提高性能,建议将Composer缓存目录与主机共享:
yamlsatis: volumes: - "/var/tmp/composer:/root/.composer"
若需对外提供访问,建议使用反向代理。以下是Nginx配置示例:
nginxserver { server_name satis.domain.tld; location / { proxy_pass http://127.0.0.1:80; } }
bash./tests.sh
MIT许可协议
Copyright (c) 2017 Yannick Pereira-Reis
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务