User Tools

This is an old revision of the document!


Immich

Immich is a modern photo management web application which aims to be similar to Google Photo. It can be uses to backup phone photos and also manage older collection of older photos.

Immich is a fairly new player in the game but it's growing a lot and is gaining a lot of traction. It's heavily under development and very polished. Overall it's probably the best solution but:

  • Doesn't support folders as albums (sorry, long term solution must be stored in folders and not only in a database)
  • Uses a database for metadata, which is not good again for long term solution.
  • It's been a bit unclear since it was acquired by Futo's. Futo's stance on Open Source is unclear to me.
  • After moving to Futo they added some controversial support system (on which they also backtracked), and it seemed not very well tought of.
  • Devs don't seems to care too much on user needs and keep plowing ahead on their roadmap.

Immich, at this time, does not support base_url out of the box. A lot of discussion is going on around the topic and somebody found a nice fix using a specific NGINX setup, which i will describe in this page.

Overall, i stopped using it.

Installation

Use photos user and group, see Photos Management Server.

Immich needs to be installed using a docker compose file. This is the official and only supported installation method. I will show you, of course, how to run it rootless with podman. Immich installation is detailed here, and i suggest you take a look at.

I assume you have already created the photo user and group, but in case you didn't, here you go: So, let's get going. Create an immich user:

useradd -d /data/daemons/photos photos

And download the standard Immich docker-compose and env files:

su - photos
wget https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#optional: wget https://github.com/immich-app/immich/releases/latest/download/hwaccel.transcoding.yml
#optional: wget https://github.com/immich-app/immich/releases/latest/download/hwaccel.ml.yml
wget -O .env https://github.com/immich-app/immich/releases/latest/download/example.env

(enabling hardware acceleration is optional and i will not cover it here, as it's not needed in my use-case)

I will not give you a full docker-compose file, because Immich sometimes ships with backward incompatibilities, you must start from the one linked above and do the following modifications:

  • Specify a network to all containers
  • Add any specific volumes for specific external galleries
  • Remove the restart and healthcheck sections

This is the specific code for the network:

# Add these two lines to each one of the services (immich-server, immich-microservices, immich-machine-learning, redis, database, ...)
    networks:
      - immich-net

# This goes at the end of the file:
networks:
  immich-net: {}

Please note that you can have more than one mount, ideally one for each folder tree that contains photos you want to add as external library to Immich.

edit the /data/daemons/immich/.env file to adapt at least your Uploads and external folder:

UPLOAD_LOCATION=/data/Media/Photos/Uploads
EXTERNAL_PATH=/path/to/your/external/photos/trees
IMMICH_VERSION=release

Configuration

External Library setup

Storage Template setup

SSO authentication setup

NGINX reverse proxy

Immich officially only support subdomain and not subpath deployment. Use the following NGINX configuration. I will assume your subdomain is called immich.mydomain.com:

immich.conf
    server {
        server_name immich.mydomain.com;
        listen 8443 ssl; 
        listen 443 ssl; 
        client_max_body_size 50000M;
        large_client_header_buffers 4 32k;
 
        access_log /var/log/nginx/immich.mydomain.com_access_log main;
        error_log /var/log/nginx/immich.mydomain.com_error_log info;
 
        location / {
                proxy_pass http://127.0.0.1:2283/;
        }
 
        include com.mydomain/certbot.conf;
}

First usage

Fire up your browser at https://yourdomain.com/immich (or https://immich.yourdomain.com) and follow instructions.

To add external libraries, it's currently (Immich 1.92.1) a bit convoluted.

First you need, as administrator, to go to each user settings (under administration panel) and add the external path as specified in the docker compose (ex: /usr/src/app/external) then, as specific user, you also need to add an external library and repeat the same path in your user settings.

It's confusing, i think this will be improved in future releases.

Command line CLI

Immich has a CLI which requires NPM:

emerge nodejs

as user immich:

npm i -g @immich/cli

The CLI might require login for upload operations:

immich login-key https://10.0.0.1/immich/api [apiKey]
immich upload --recursive directory/

Update

When you want to update Immich, just:

su - immich
podman compose down
podman compose pull
podman compose up -d

Be aware that Immich is bleeding edge and sometimes there are breaking updates! Always check on Immich Releases page the release notes and take actions accordingly. YOU HAVE BEEN WARNED.

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information