什么是 HomeGallery ?

HomeGallery 是一个自托管的开源 Web 图片库,用于浏览个人照片和视频,其中包括标记、对移动端友好和 AI 驱动的图像和面部发现功能。

HomeGallery 的独特功能是自动 相似图像/反向图像搜索功能无数据库架构 (所有搜索和过滤都在客户端浏览器上快速完成)。这会带来快速响应的用户体验,无需任何手动步骤即可导航和探索档案。

官方提供了演示网站:https://demo.home-gallery.org/

命令行安装

采用 docker-compose 安装方式,将下面的内容保存为 docker-compose.yml 文件

这是在官方的 docker-compose.yml 基础上修改的,老苏保留了修改痕迹,方便你知道改了哪些内容;

version: "3.9"services:api:# custom build via#build: packages/api-serverimage: xemle/home-gallery-api-servercontainer_name: home-gallery-apienvironment:# TensorflowJS backends# - cpu: slowest and best support# - wasm: good perfromance for arm64 and amd64 platforms# - node: best performance on amd64 platform#- BACKEND=cpu- BACKEND=wasm#- BACKEND=nodegallery:# custom build via#build: .image: xemle/home-gallerycontainer_name: home-gallery-serverenvironment:- GALLERY_API_SERVER=http://api:3000#- GALLERY_API_SERVER_CONCURRENT=1 # On low powered devices#- GALLERY_API_SERVER_TIMEOUT=60 # On low powered devices- GALLERY_OPEN_BROWSER=falsevolumes:- ./data:/data# Mount your media directories below /data- /volume2/docker/photoprism/photos:/data/Picturesports:- "3045:3000"user: "${CURRENT_USER}"entrypoint: [ 'node', '/app/gallery.js' ]command: [ 'run', 'server' ]

几个主要变量的说明: