Add Samba User
sudo useradd -s /bin/true SAMBAUSERNAME
sudo smbpasswd -L -a SAMBAUSERNAME
sudo smbpasswd -L -e SAMBAUSERNAME


mkdir /cred
cd /cred


nano /cred/.smbcredentials

content:
username='<username>'
password='<password>'
domain=<domain>

Create dirctories:
mkdir /media
mkdir /media/movies
chown -R <username>:<usergroup> /media
chmod -R 0755 /media


manual mount:
mount -t cifs //192.168.50.205/mydocuments/movies /media/movies -o credentials=/cred/.smbcredentials,vers=3,dir_mode=0755,file_mode=0755,nodfs

Auto mount:
nano /etc/fstab

content:
Add this
//192.168.50.205/mydocuments/movies /media/movies cifs vers=3,credentials=/cred/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0755,dir_mode=0755,user 0 0

test it:
mount -av

Docker install of IMMICH
https://immich.app/docs/install/docker-compose/

IMMICH DOCKER CONTAINER ADD VOLUME: ADD External Library
edit env
nano .env
add

EXTERNAL_PATH=<path>
ie EXTERNAL_PATH=/media/smilecouple

edit yml
nano docker-compose.yml
content:
add - ${EXTERNAL_PATH}:${EXTERNAL_PATH}:ro
to TWO places: volumes of immich-server and immich-microservices

restart docker with added paths

docker compose down
docker compose up -d