Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:immich [2025/02/24 08:05] – willy | services:immich [2025/03/13 14:41] (current) – [Installation] willy | ||
---|---|---|---|
Line 3: | Line 3: | ||
[[https:// | [[https:// | ||
- | Immich | + | Immich |
- | Overall | + | |
- | * Doesn' | + | |
- | * Uses a database | + | |
- | * It's been a bit unclear since it was acquired by Futo' | + | |
- | * After moving to Futo they added some controversial support system (on which they also backtracked), and it seemed | + | |
- | * 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 // | + | Immich, at this time, still does not support // |
- | Overall, i stopped using it. | + | While installing Immich overall is not a huge task, you should really read carefully this page **and** all the very good documentation on Immich website itself. |
- | ===== Installation ===== | ||
+ | ===== Installation ===== | ||
- | Use **photos** | + | I will assume you will store all Immich stuff under **/data/photos**. You will need two folders here: |
+ | * / | ||
+ | * / | ||
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 [[https:// | 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 [[https:// | ||
- | I assume you have already created the photo user and group, but in case you didn' | + | I assume you have already created the photo user and group (see [[selfhost: |
- | So, let's get going. Create an **immich** user: | + | |
<code bash> | <code bash> | ||
useradd -d / | useradd -d / | ||
+ | mkdir / | ||
+ | mkdir / | ||
+ | mkdir / | ||
</ | </ | ||
Line 54: | Line 52: | ||
</ | </ | ||
- | + | 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. | |
- | 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 **/ | edit the **/ | ||
< | < | ||
- | UPLOAD_LOCATION=/ | + | # The location where your uploaded files are stored |
- | EXTERNAL_PATH=/path/ | + | UPLOAD_LOCATION=/ |
- | IMMICH_VERSION=release | + | # The location where your database files are stored |
+ | DB_DATA_LOCATION=/data/photos/immich_database | ||
</ | </ | ||
+ | |||
+ | You can fine-tune the rest of the env file to your needs. | ||
+ | |||
===== Configuration ===== | ===== Configuration ===== | ||
+ | |||
+ | You should follow all the steps below before starting using Immich for real, as they have some implications and it's better to sort out stuff before, than reorganize everything later. Immich does a pretty great job of ensuring it's consistent and changeable at a later point in time tough. Still better to dedicate a little time to think stuff out before than later. | ||
+ | |||
==== External Library setup ==== | ==== External Library setup ==== | ||
Line 96: | Line 100: | ||
Storage templates let's you choose how Immich should store photos and videos on your filesystem. This is specially useful if you like to sort your photos for albums and/or year-month-day. I think this is a very powerful feature of Immich and a very welcome addition to it's features. | Storage templates let's you choose how Immich should store photos and videos on your filesystem. This is specially useful if you like to sort your photos for albums and/or year-month-day. I think this is a very powerful feature of Immich and a very welcome addition to it's features. | ||
- | My template is: **{{y}}/{{#if album}}{{album}}{{else}}Altre{{/ | + | My template is: |
+ | < | ||
+ | {{y}}/{{#if album}}{{album}}{{else}}Others{{/ | ||
+ | </ | ||
+ | |||
+ | this template will store folders by **year** and **album**. If the photo is not stored in an album, it will go into a folder called **Others**. | ||
+ | |||
+ | That can be setup from //Immich web gui -> administration -> settings -> storage templates// | ||
You also need to __enable__ it from the same setting area. Remember to run the update storage templates task if you change it. Also, remember to check that it's working as intended before you have thousand of photos stored the wrong way. | You also need to __enable__ it from the same setting area. Remember to run the update storage templates task if you change it. Also, remember to check that it's working as intended before you have thousand of photos stored the wrong way. | ||
Line 103: | Line 114: | ||
==== SSO authentication setup ==== | ==== SSO authentication setup ==== | ||
- | ==== Bakcups | + | Immich support direct integration with [[selfhost: |
+ | |||
+ | First of all, you need to configure Authelia with a new client: | ||
+ | < | ||
+ | identity_providers: | ||
+ | oidc: | ||
+ | ## The other portions of the mandatory OpenID Connect 1.0 configuration go here. | ||
+ | ## See: https:// | ||
+ | clients: | ||
+ | - client_id: << see below to generate ClientID >> | ||
+ | client_name: | ||
+ | client_secret: | ||
+ | public: false | ||
+ | authorization_policy: | ||
+ | redirect_uris: | ||
+ | - ' | ||
+ | - ' | ||
+ | - ' | ||
+ | scopes: | ||
+ | - ' | ||
+ | - ' | ||
+ | - ' | ||
+ | userinfo_signed_response_alg: | ||
+ | </ | ||
+ | |||
+ | To generate a ClientID: | ||
+ | <code bash> | ||
+ | authelia crypto rand --length 72 --charset rfc3986 | ||
+ | </ | ||
+ | This information will need to copied to both authelia config and immich settings. | ||
+ | |||
+ | To generate a Client Secret: | ||
+ | <code bash> | ||
+ | authelia crypto hash generate pbkdf2 --variant sha512 --random --random.length 72 --random.charset rfc3986 | ||
+ | </ | ||
+ | Please note **both** the hash and the password itself! You will need the password itself in the next step. | ||
+ | |||
+ | Then you need to configure Immich to use Authelia SSO, so go to //Immich web gui → administration → settings → Authentication settings// and enter the following information: | ||
+ | * Issuer URL: https:// | ||
+ | * Client ID: << the generated ClientID >>. | ||
+ | * Client Secret: insecure_secret. | ||
+ | * Scope: openid profile email. | ||
+ | * Button Text: Login with Authelia. | ||
+ | * Auto Register: Enable if desired. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== Bakcup | ||
I assume you have setup a backup schedule like described [[selfhost: | I assume you have setup a backup schedule like described [[selfhost: | ||
Line 181: | Line 240: | ||
immich upload --recursive directory/ | immich upload --recursive directory/ | ||
</ | </ | ||
- | |||