ImmichI
Immich13mo ago
Maraxen

Using SMB share to save photos and DB

Hi guys, I'm trying to have my Immich instance to upload the photos and DB to SMB share. I'm using Proxmox and then running Immich on Debian VM. I'm also running TrueNAS Scale in another VM.

So I made a dataset and made a SMB share out of it. You can see the ACL in the uploaded screenshot.
Then I went and mounted the share using this command:
sudo mount -t cifs //192.168.2.15/immich /mnt/immich -o username=immich,password=mypassword

After that I edited the .env file
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/immich/library
# The location where your database files are stored
DB_DATA_LOCATION=/mnt/immich/postrgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich


When I run
docker compose up
I can see many errors one of them being:
chown: changing ownership of '/var/lib/postgresql/data': operation not permitted
image.png
image.png
Was this page helpful?