[{"data":1,"prerenderedAt":178},["ShallowReactive",2],{"content:\u002Fposts\u002Fimmich-deploy":3,"surround:\u002Fposts\u002Fimmich-deploy":167},{"id":4,"title":5,"body":6,"categories":141,"date":143,"description":144,"draft":145,"extension":146,"image":147,"meta":148,"navigation":150,"path":151,"permalink":147,"pinned":145,"published":147,"readingTime":152,"recommend":147,"references":147,"seo":157,"sitemap":158,"stem":159,"tags":160,"type":164,"updated":165,"__hash__":166},"content\u002Fposts\u002Fposts\u002Fimmich-deploy.md","Immich 图片管理软件部署备忘录",{"type":7,"value":8,"toc":133},"minimark",[9,19,22,38,47,51,62,66,75,79,86,98,110,113],[10,11,15],"alert",{"type":12,"icon":13,"title":14},"info","tabler:robot","AI 迁移提示",[16,17,18],"p",{},"本文由 AI 协助从旧站迁移，尚未完成逐篇人工审校；内容如有疏漏，将在复核后修订。",[16,20,21],{},"Immich 是一款自托管照片和视频管理软件，支持 Web、Android、iOS 多端同步，保护用户隐私。",[16,23,24,25,32,33],{},"官网：",[26,27,31],"a",{"href":28,"rel":29},"https:\u002F\u002Fimmich.app",[30],"nofollow","immich.app"," | 安装文档：",[26,34,37],{"href":35,"rel":36},"https:\u002F\u002Fimmich.app\u002Fdocs\u002Finstall\u002Fdocker-compose",[30],"docker-compose",[10,39,40],{"type":12},[16,41,42,43],{},"Immich 使用 PostgreSQL 作为数据库，如需独立部署参见：",[26,44,46],{"href":45},"\u002Fposts\u002Fpostgresql-install","Ubuntu 安装 PostgreSQL 与常用配置",[48,49,50],"h2",{"id":50},"下载配置文件",[52,53,59],"pre",{"className":54,"code":56,"language":57,"meta":58},[55],"language-bash","wget -O docker-compose.yml https:\u002F\u002Fgithub.com\u002Fimmich-app\u002Fimmich\u002Freleases\u002Flatest\u002Fdownload\u002Fdocker-compose.yml\nwget -O .env https:\u002F\u002Fgithub.com\u002Fimmich-app\u002Fimmich\u002Freleases\u002Flatest\u002Fdownload\u002Fexample.env\n","bash","",[60,61,56],"code",{"__ignoreMap":58},[48,63,65],{"id":64},"docker-composeyml支持-intel-核显-openvino","docker-compose.yml（支持 Intel 核显 OpenVINO）",[52,67,73],{"className":68,"code":70,"filename":71,"language":72,"meta":58},[69],"language-yaml","name: immich\n\nservices:\n  immich-server:\n    container_name: immich_server\n    image: ghcr.io\u002Fimmich-app\u002Fimmich-server:${IMMICH_VERSION:-release}\n    devices:\n      - \u002Fdev\u002Fdri:\u002Fdev\u002Fdri\n    volumes:\n      - ${UPLOAD_LOCATION}:\u002Fdata\n      - \u002Fetc\u002Flocaltime:\u002Fetc\u002Flocaltime:ro\n      # 反向地理编码汉化\n      - .\u002Fgeodata-cn\u002Fgeodata:\u002Fbuild\u002Fgeodata\n      - .\u002Fgeodata-cn\u002Fi18n-iso-countries\u002Flangs:\u002Fusr\u002Fsrc\u002Fapp\u002Fserver\u002Fnode_modules\u002Fi18n-iso-countries\u002Flangs\n    env_file:\n      - .env\n    ports:\n      - '2283:2283'\n    depends_on:\n      - redis\n      - database\n    restart: always\n\n  immich-machine-learning:\n    container_name: immich_machine_learning\n    image: ghcr.io\u002Fimmich-app\u002Fimmich-machine-learning:${IMMICH_VERSION:-release}-openvino\n    devices:\n      - \u002Fdev\u002Fdri:\u002Fdev\u002Fdri\n    volumes:\n      - model-cache:\u002Fcache\n    env_file:\n      - .env\n    restart: always\n\n  redis:\n    container_name: immich_redis\n    image: docker.io\u002Fvalkey\u002Fvalkey:9\n    restart: always\n\n  database:\n    container_name: immich_postgres\n    image: ghcr.io\u002Fimmich-app\u002Fpostgres:14-vectorchord0.4.3-pgvectors0.2.0\n    environment:\n      POSTGRES_PASSWORD: ${DB_PASSWORD}\n      POSTGRES_USER: ${DB_USERNAME}\n      POSTGRES_DB: ${DB_DATABASE_NAME}\n    volumes:\n      - ${DB_DATA_LOCATION}:\u002Fvar\u002Flib\u002Fpostgresql\u002Fdata\n    restart: always\n\nvolumes:\n  model-cache:\n","docker-compose.yaml","yaml",[60,74,70],{"__ignoreMap":58},[48,76,78],{"id":77},"env-配置",".env 配置",[52,80,84],{"className":81,"code":82,"filename":83,"language":57,"meta":58},[55],"UPLOAD_LOCATION=.\u002Flibrary\nDB_DATA_LOCATION=.\u002Fpostgres\nTZ=Asia\u002FShanghai\nIMMICH_VERSION=v2\nDB_PASSWORD=postgres\nDB_USERNAME=postgres\nDB_DATABASE_NAME=immich\n",".env",[60,85,82],{"__ignoreMap":58},[10,87,89],{"type":88},"warning",[16,90,91,94,95,97],{},[60,92,93],{"code":93},"DB_PASSWORD=postgres"," 是示例值。部署前请改为随机强密码，并妥善备份 ",[60,96,83],{"code":83}," 文件。",[10,99,101,104],{"type":100},"tip",[16,102,103],{},"使用国内镜像加速：",[52,105,108],{"className":106,"code":107,"language":57,"meta":58},[55],"sed -i 's|ghcr\\.io|ghcr.example.com|g' docker-compose.yml\nsed -i 's|docker\\.io|docker.example.com|g' docker-compose.yml\n",[60,109,107],{"__ignoreMap":58},[48,111,112],{"id":112},"扩展功能",[114,115,116,125],"ul",{},[117,118,119,120],"li",{},"中文地理编码：",[26,121,124],{"href":122,"rel":123},"https:\u002F\u002Fgithub.com\u002FZingLix\u002Fimmich-geodata-cn",[30],"ZingLix\u002Fimmich-geodata-cn",[117,126,127,128],{},"中文 CLIP 模型：参考 ",[26,129,132],{"href":130,"rel":131},"https:\u002F\u002Fwww.bilibili.com\u002Fopus\u002F921308194821636097",[30],"Bilibili 教程",{"title":58,"searchDepth":134,"depth":134,"links":135},4,[136,138,139,140],{"id":50,"depth":137,"text":50},2,{"id":64,"depth":137,"text":65},{"id":77,"depth":137,"text":78},{"id":112,"depth":137,"text":112},[142],"服务","2025-10-09","记录 Immich 自托管照片管理软件的 Docker Compose 部署方式，支持 Intel 核显 OpenVINO 加速，以及中文地理编码和 CLIP 大模型配置。",false,"md",null,{"slots":149},{},true,"\u002Fposts\u002Fimmich-deploy",{"text":153,"minutes":154,"time":155,"words":156},"2 min read",1.335,80100,267,{"title":5,"description":144},{"loc":151},"posts\u002Fposts\u002Fimmich-deploy",[161,162,163],"Immich","Docker","HomeLab","tech","2026-06-27 15:16:40","2ljadXKVP-LahxW2vgTzN8HhCusF5emyhTyrxShG3y8",[168,173],{"title":169,"path":170,"stem":171,"date":172,"type":164,"children":-1},"Debian 13 稳定版安装指南及系统配置","\u002Fposts\u002Fdebian-install-config","posts\u002Fposts\u002Fdebian-install-config","2025-10-08 10:14:30",{"title":174,"path":175,"stem":176,"date":177,"type":164,"children":-1},"Docker 部署 Sun-Panel 导航面板","\u002Fposts\u002Fdocker-sun-panel","posts\u002Fposts\u002Fdocker-sun-panel","2025-10-09 15:13:16",1788712226071]