As you can see, I was being lazy and had all my stuff under the root account. I am trying to rectify this.
My current
.env
.env
looks like this:
# 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 storedUPLOAD_LOCATION=~/sbmount/Camera/Immich/ImmichUpload# The location where your database files are storedDB_DATA_LOCATION=~/sbmount/Immich/postgres# TZ=Etc/UTCIMMICH_VERSION=releaseDB_PASSWORD=[redacted]DB_USERNAME=postgresDB_DATABASE_NAME=immich
# 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 storedUPLOAD_LOCATION=~/sbmount/Camera/Immich/ImmichUpload# The location where your database files are storedDB_DATA_LOCATION=~/sbmount/Immich/postgres# TZ=Etc/UTCIMMICH_VERSION=releaseDB_PASSWORD=[redacted]DB_USERNAME=postgresDB_DATABASE_NAME=immich
I'd like to mount the storagebox Immich folder under
/home/new-user/docker/immich-app/sb/
/home/new-user/docker/immich-app/sb/
. I would also like to move the postgres db to the new users account under
/home/new-user/docker/immich-app/postgres/
/home/new-user/docker/immich-app/postgres/
. Also, the
.env
.env
and
docker-compose.yml
docker-compose.yml
would move to
/home/new-user/docker/immich-app/
/home/new-user/docker/immich-app/
Then, my
.env
.env
should be able to look like:
# The location where your uploaded files are storedUPLOAD_LOCATION=./sb/ImmichUpload# The location where your database files are storedDB_DATA_LOCATION=./postgres
# The location where your uploaded files are storedUPLOAD_LOCATION=./sb/ImmichUpload# The location where your database files are storedDB_DATA_LOCATION=./postgres
Questions: - Can I safely move the mountpoint for the image uploads? - How do I move the postgres DB? - Am I missing anything?
docker-compose.yml is attached.
Any help would be greatly appreciated. Thanks in advance.