Configuring Immich on UnRaid

Requirements

To install Immich on Unraid the requirements are relatively simple. The first requirement of course is Immich, but Immich alone does not run. It requires a PostgreSQL DB along with Redis. I already had a functional Redis instance for my Traefik reverse proxy so I will only cover how to setup Postges and Immich.

Installing PostgreSQL

The installation of Postgres is pretty straightforward thanks to the templates used when installing from the Community apps page. I personally used the official Postgres18 container template. An important requirement for an Immich DB is the support for vectors. To fix this all you need to do is change the repository from the template default to ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0. This will install Postgres from an repo that is reconfigured for vectors.

When filling out the settings you will be prompted to set a super user password, username and a DB location.The username must be changed from the default Postgres because it will cause errors. Make sure to note the username and password as this will be need for accessing SQL. You can create an initial DB at install, I named mine Immich.

To manage my DB’s I use Adminer. Its very simple to install and makes the management of SQL much easier in my opinion. I would highly recommend it for anyone working with SQL in Docker.

Installing Immich

Now that we have PostgreSQL installed and have a preexisting Redis instance we can get Immich installed. This process is again simplified by the template supplied by the official Immich community apps container. You just need to fill our each asterisked setting with the required info. To do this you will need the credentials for your SQL DB, Redis instance and their respective port numbers. This is also where you get to define the location of your /photos mount. Personally I duplicated this setting with a new name to make a separate folder for organizations sake. I wanted to have a separate mounted folder for certain picture imports. This can be later configured inside Immich.

If you run into errors when booting Immich for the first time refer to the logs console window. Immich supplied helpful error codes that helped me during my initial install. I was able to find issues relating to my DB creds, DB username and lack of vector support in my SQL instance.

Comments

Leave a Reply