From 21d2b5ec68032aea198399a4c7e7067568a697b1 Mon Sep 17 00:00:00 2001 From: Thomas Blarre Date: Tue, 14 May 2024 20:20:59 +0100 Subject: [PATCH] Added custom files location for immich --- immich/.env.example | 5 ++++- immich/docker-compose.yml | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/immich/.env.example b/immich/.env.example index 7e683c1..be1a596 100644 --- a/immich/.env.example +++ b/immich/.env.example @@ -1,7 +1,10 @@ # 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=./library +UPLOAD_LOCATION=/custom/location/on/your/system/immich/immich_files +THUMB_LOCATION=/custom/location/on/your/system/immich/thumbs +ENCODED_VIDEO_LOCATION=/custom/location/on/your/system/immich/encoded-video +PROFILE_LOCATION=/custom/location/on/your/system/immich/profile # The location where your database files are stored DB_DATA_LOCATION=./postgres diff --git a/immich/docker-compose.yml b/immich/docker-compose.yml index 46ad494..235d966 100644 --- a/immich/docker-compose.yml +++ b/immich/docker-compose.yml @@ -32,6 +32,9 @@ services: command: ['start.sh', 'immich'] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload + - ${THUMB_LOCATION}:/usr/src/app/upload/thumbs + - ${ENCODED_VIDEO_LOCATION}:/usr/src/app/upload/encoded-video + - ${PROFILE_LOCATION}:/usr/src/app/upload/profile - /etc/localtime:/etc/localtime:ro env_file: - .env @@ -51,6 +54,9 @@ services: command: ['start.sh', 'microservices'] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload + - ${THUMB_LOCATION}:/usr/src/app/upload/thumbs + - ${ENCODED_VIDEO_LOCATION}:/usr/src/app/upload/encoded-video + - ${PROFILE_LOCATION}:/usr/src/app/upload/profile - /etc/localtime:/etc/localtime:ro env_file: - .env