← 返回列表

Immich

估算

照片留在自己家的 Google Photos。手机自动备份,人脸与语义搜索一应俱全。

替代付费服务Google One 2 TB ($100/yr)
内存占用1.5 GB 常态 · 3.4 GB 峰值
支持架构amd64 / arm64
开源协议AGPL-3.0 · 中等

避坑提醒

首次导入会连续数小时跑人脸与 CLIP 任务,峰值可超 3 GB。4–8 GB 设备请先暂停 ML 或把并发降到 1。

可选模块

  • 机器学习(人脸、智能搜索)idle ±900 MB · peak ±2.0 GB

零公网端口 Compose 片段

已自带 mem_limit 与 127.0.0.1 绑定。打开选配台可一键组合 Tailscale/Cloudflare 与本地 .env。

# Generated by NASPicks (https://naspicks.com/planner/)
# Hardware: UGREEN NASync DXP2800 (8 GB, ugos) | Peak est: 3.4 GB / 6.7 GB
# Zero-open-port default: web ports bind to 127.0.0.1 and are reached via tailscale.
# Every service includes mem_limit (peak x 1.2) to help prevent host OOM freezes.

services:
  immich-server:
    image: ghcr.io/immich-app/immich-server:release
    container_name: immich_server
    restart: unless-stopped
    mem_limit: 1920m
    ports:
      - "127.0.0.1:2283:2283"
    environment:
      - TZ=${TZ}
      - DB_HOSTNAME=immich-postgres
      - DB_USERNAME=postgres
      - DB_PASSWORD=${IMMICH_DB_PASSWORD}
      - DB_DATABASE_NAME=immich
      - REDIS_HOSTNAME=immich-redis
    volumes:
      - ${DATA_DIR}/immich/upload:/usr/src/app/upload
    depends_on:
      - immich-redis
      - immich-postgres
    networks:
      - naspicks
  immich-machine-learning:
    image: ghcr.io/immich-app/immich-machine-learning:release
    container_name: immich_machine_learning
    restart: unless-stopped
    mem_limit: 1920m
    volumes:
      - ${DATA_DIR}/immich/model-cache:/cache
    networks:
      - naspicks

  immich-redis:
    image: docker.io/valkey/valkey:8-alpine
    container_name: immich_redis
    restart: unless-stopped
    mem_limit: 128m
    networks:
      - naspicks

  immich-postgres:
    image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0
    container_name: immich_postgres
    restart: unless-stopped
    mem_limit: 512m
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=${IMMICH_DB_PASSWORD}
      - POSTGRES_DB=immich
    volumes:
      - immich_pgdata:/var/lib/postgresql/data
    networks:
      - naspicks

volumes:
  immich_pgdata:

networks:
  naspicks:
    driver: bridge

讨论区(GitHub Discussions)

GitHub Discussions ↗

评论区采用懒加载,确保海内外页面秒开。