When using the official Immich docker-compose, the PostgreSQL data is stored in a docker volume which should be located at /var/lib/docker/volumes/pgdata/_data
. Before preceeding you must stop the docker-compose stack.
To move the PostgreSQL data to the unraid array run:
mv /var/lib/docker/volumes/pgdata/_data /mnt/user/appdata/postgres14
Install postgresql14
from the Unraid CA and remove these variables from the template: POSTGRES_USER
, POSTGRES_PASSWORD
, POSTGRES_DB
.
The database is already initialised and these variables don't do anything.
Also set Database Storage Path
to /mnt/user/appdata/postgres14
.
In the docker-compose .env you would have set the UPLOAD_LOCATION
, copy that down and use it below:
uploads
folder within the UPLOAD_LOCATION
.
mv <upload_location>/uploads /mnt/user/<elsewhere>
Search the unraid CA for immich
Ensure that the template matches the DB_USERNAME
, DB_PASSWORD
, DB_DATABASE_NAME
from the .env. Set Path: /photos
to /mnt/user/<elsewhere>
.
Click Apply, Open the WebUI and login. Everything Should be as it was.