High performance self-hosted photo and video backup solution – Immich

Mr.Bai 699 浏览 0

High performance self-hosted photo and video backup solution - Immich

Install Requirements

Hardware and software requirements for Immich
Software

Hardware

  • OS: Preferred unix-based operating system (Ubuntu, Debian, MacOS, etc). Windows works too, with Docker Desktop on Windows
  • RAM: At least 2GB, preferred 4GB.
  • CPU: At least 2 cores, preferred 4 cores.

Using Docker Compose

Docker Compose is the recommended method to run Immich in production. Below are the steps to deploy Immich with Docker Compose.

Step 1 - Download the required files

Download docker-compose.yml example.env.

From a directory of your choice (e.g. ./immich-app) run the following commands:

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

Step 2 - Populate the .env file with custom values

Example .env content
  • Populate custom database information if necessary.
  • Populate UPLOAD_LOCATION with your preferred location for storing backup assets.

Step 3 - Start the containers

# Start the containers using docker compose command
docker-compose up -d # or `docker compose up -d` based on your docker-compose version

Step 4 - Upgrading

When a new version of Immich is released, the application can be upgraded with the following commands, run in the directory with the docker-compose.yml file:

# Upgrade Immich
docker-compose pull && docker-compose up -d # Or `docker compose`

 

Post Install Steps

Step 1 - Register the Admin User

The first user to register will be the admin user. The admin user will be able to add other users to the application.

To register for the admin user, access the web application at http://<machine-ip-address>:2283 and click on the Getting Started button.

High performance self-hosted photo and video backup solution - Immich

Follow the prompts to register as the admin user and log in to the application.

Step 2 - Create a New User (optional)

If you have friends or family members who want to use the application as well, you can create addition accounts. The default password is password, and the user can change their password after logging in to the application for the first time.

High performance self-hosted photo and video backup solution - Immich

 

Step 3 - Update the Storage Template

Immich allows the admin user to set the pattern of how the files are uploaded to the Immich would look like. Both in the directory and the filename level.

The admin user can set the template by using the template builder in the Administration -> Settings -> Storage Template. Immich provides a set of variables that you can use in constructing the template, along with additional custom text.

Default template
Year/Year-Month-Day/Filename.Extension

High performance self-hosted photo and video backup solution - Immich

Immich also provides a mechanism to migrate between template so that if the template you set now doesn't work in the future, you can always migrate all the existing files to the new template. The mechanism is run as a job in the Job page.

Step 4 - Download the Mobile App

The mobile app can be downloaded from the following places:

Step 5 - Login to the Mobile App

Login to the mobile app with the server endpoint URL at http://<machine-ip-address>:2283/api

Step 6 - Backup Your Library

Navigate to the backup screen by clicking on the cloud icon in the top right corner of the screen.

High performance self-hosted photo and video backup solution - Immich

You can select which album(s) you want to back up to the Immich server from the backup screen.

High performance self-hosted photo and video backup solution - Immich

Scroll down to the bottom and press "Start Backup" to start the backup process.

Documentation

发表评论 取消回复
表情 图片 链接 代码

分享
请选择语言