
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
GPU image that enhances your Immich photos: AI upscaling, face restoration, and black‑and‑white colorization. It runs as a small broker next to your self‑hosted Immich — it holds your Immich API key so the browser never has to — and pairs with the Forge for Immich Chrome extension.
upscale (Real‑ESRGAN) · face restore (GFPGAN) · colorize (DDColor)
In the Immich web app: click your avatar (top‑right) → Account Settings → API Keys → New API Key. Give it a name and copy the key — you'll paste it below.
Also note your Immich URL. For a typical self‑hosted setup it's http://YOUR_SERVER_IP:2283.
bashdocker run -d \ --name immich-forge \ --gpus all \ -p 8000:8000 \ -e IMMICH_BASE_URL=http://YOUR_SERVER_IP:2283 \ -e IMMICH_API_KEY=paste-your-immich-api-key \ -e FORGE_API_TOKEN=$(openssl rand -hex 32) \ -v immich-forge-weights:/app/weights \ --restart unless-stopped \ jamiekyu/immich-forge:latest
IMMICH_BASE_URL / IMMICH_API_KEY — point Forge at your Immich and let it act on your behalf.FORGE_API_TOKEN — a secret that protects this server (anyone who can reach it can use your GPU). The command above generates a random one; copy it from docker logs or set your own — you'll enter it in the extension. Leave it unset to disable auth (local testing only).-v immich-forge-weights:/app/weights — model weights (~2–3 GB) download here on first start. Keep this volume so they aren't re‑downloaded.Check it's healthy:
bashcurl http://YOUR_SERVER_IP:8000/health # {"ok": true, "immich": true, ...}
First boot downloads the model weights, so give it a minute before the GPU stages work. Until they're present, Forge falls back to basic (non‑AI) processing.
Install “Forge for Immich” from the Chrome Web Store: https://chromewebstore.google.com/detail/forge-for-immich/ceaoooljelkcaagcljambkdldadpblgc
Then open a single photo in your Immich web app, click the Forge toolbar icon, open settings, and enter:
http://YOUR_SERVER_IP:8000FORGE_API_TOKEN value from step 2| Variable | Default | Description |
|---|---|---|
IMMICH_BASE_URL | http://immich-server:2283 | Your Immich server URL. Set this. |
IMMICH_API_KEY | (e***y) | Immich API key. Set this. |
FORGE_API_TOKEN | (e***y) | Bearer token clients must send. E***y = auth disabled. Recommended. |
FORGE_DEVICE | cuda | cuda or cpu. |
FORGE_WEIGHTS_DIR | weights | Where model weights live (mount a volume here). |
FORGE_TILE_SIZE | 512 | Upscale tile size; lower it (e.g. 256) if you hit GPU out‑of‑memory. |
FORGE_MAX_OUTPUT_PIXELS | 100000000 | Caps output size; the upscale factor is clamped to fit. |
FORGE_UPSCALE_BACKEND | realesrgan | realesrgan or lanczos. |
FORGE_FACE_BACKEND | gfpgan | gfpgan, codeformer, or none. |
FORGE_COLORIZE_BACKEND | ddcolor | ddcolor or none. |
FORGE_MAX_CONCURRENT_GPU_JOBS | 1 | Simultaneous GPU jobs. |
FORGE_JOB_TTL_SECONDS | 3600 | How long finished results are kept. |
The server listens on port 8000. /health is public; all other endpoints require the FORGE_API_TOKEN bearer token when one is set.
yamlservices: forge: image: jamiekyu/immich-forge:latest ports: - "8000:8000" environment: IMMICH_BASE_URL: http://YOUR_SERVER_IP:2283 IMMICH_API_KEY: paste-your-immich-api-key FORGE_API_TOKEN: a-long-random-token volumes: - immich-forge-weights:/app/weights deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu] restart: unless-stopped volumes: immich-forge-weights:
Drop --gpus all and set FORGE_DEVICE=cpu. AI stages are very slow on CPU and some fall back to classical methods — fine for trying it out, not for everyday use.
bashdocker run -d --name immich-forge -p 8000:8000 \ -e FORGE_DEVICE=cpu \ -e IMMICH_BASE_URL=http://YOUR_SERVER_IP:2283 \ -e IMMICH_API_KEY=paste-your-immich-api-key \ -e FORGE_API_TOKEN=$(openssl rand -hex 32) \ -v immich-forge-weights:/app/weights \ jamiekyu/immich-forge:latest
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务