immich是个很好的照片备份工具。可以全平台备份。

我的部署方法如下:

安装immich

  1. 创建一个存放该服务的文件
1
2
3
cd /home/Disk/4Tsdc/docker/
mkdir immich
cd immich
  1. 下载docker-compose.yml
1
wget https://raw.githubusercontent.com/immich-app/immich/main/docker/docker-compose.yml
  1. 下载.env文件
1
wget -O .env https://github.com/immich-app/immich/releases/latest/download/example.env
  1. 修改.env文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/home/Disk/4Tsdd/Photos #修改你想将照片存放的位置​​​​

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secrets for postgres and typesense. You should change these to random passwords
TYPESENSE_API_KEY=some-random-text
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

REDIS_HOSTNAME=immich_redis
  1. 启动容器
1
sudo docker-compose up -d 
  1. 访问
    http://10.1.1.204:2283

  2. 更新immich

1
2
cd /home/Disk/4Tsdd/docker/immich
sudo docker-compose down && sudo docker-compose pull && docker-compose up -d

参考

官方说明

https://immich.app/docs/install/docker-compose#step-4---upgrading

其他参考

不担心隐私问题, 自己部署 照片云备份服务 – immich | Jack‘s Space (veryjack.com)