Added custom files location for immich

This commit is contained in:
2024-05-14 20:20:59 +01:00
parent 51aed660b0
commit 21d2b5ec68
2 changed files with 10 additions and 1 deletions

View File

@@ -1,7 +1,10 @@
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables # 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 # 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 # The location where your database files are stored
DB_DATA_LOCATION=./postgres DB_DATA_LOCATION=./postgres

View File

@@ -32,6 +32,9 @@ services:
command: ['start.sh', 'immich'] command: ['start.sh', 'immich']
volumes: volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload - ${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 - /etc/localtime:/etc/localtime:ro
env_file: env_file:
- .env - .env
@@ -51,6 +54,9 @@ services:
command: ['start.sh', 'microservices'] command: ['start.sh', 'microservices']
volumes: volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload - ${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 - /etc/localtime:/etc/localtime:ro
env_file: env_file:
- .env - .env