【ubuntu】日常使用记录——安装immich

选用 immich 作为照片备份软件,这里记录一下安装过程。

安装

这里用到了 docker,好在我之前安装了,这里直接使用

我习惯把软件放在 /opt 目录下 cd /opt

创建目录并进入

mkdir ./immich-app
cd ./immich-app

下载 docker-compose.yml 和 example.env

wget -O docker-compose.yml https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
wget -O .env https://github.com/immich-app/immich/releases/latest/download/example.env

修改 .env 文件,主要修改配置文件的存储目录和软件版本

# You can find documentation for all the supported env variables at https://docs.immich.app/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/d/share/photo/immich/library

# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=/mnt/d/share/photo/immich/postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v2.1.0"
IMMICH_VERSION=v3

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=520

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

在当前目录下启动

docker compose up -d

这样软件会自动安装了,等待安装好即可使用,http://192.168.10.123:2283

Copyright © 2018 - 2026 xuwanwan. All rights reserved.
京ICP备18006218号