From 827136fc8b130ac72f34cf1063812a3356b545b2 Mon Sep 17 00:00:00 2001 From: Matthew Momjian <50788000+mmomjian@users.noreply.github.com> Date: Sun, 28 Jul 2024 16:43:09 -0400 Subject: [PATCH] docs: file custom location (#11413) * file custom location * fix microservices --- docs/docs/guides/custom-locations.md | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/docs/docs/guides/custom-locations.md b/docs/docs/guides/custom-locations.md index 69844f3dba..b364cccf83 100644 --- a/docs/docs/guides/custom-locations.md +++ b/docs/docs/guides/custom-locations.md @@ -13,14 +13,14 @@ In our `.env` file, we will define variables that will help us in the future whe # Custom location where your uploaded, thumbnails, and transcoded video 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 ++ UPLOAD_LOCATION=/custom/path/immich/immich_files ++ THUMB_LOCATION=/custom/path/immich/thumbs ++ ENCODED_VIDEO_LOCATION=/custom/path/immich/encoded-video ++ PROFILE_LOCATION=/custom/path/immich/profile ... ``` -After defining the locations for these files, we will edit the `docker-compose.yml` file accordingly and add the new variables to the `immich-server` and `immich-microservices` containers. +After defining the locations for these files, we will edit the `docker-compose.yml` file accordingly and add the new variables to the `immich-server` container. ```diff title="docker-compose.yml" services: @@ -29,16 +29,6 @@ services: - ${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 - -... - - immich-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 ``` @@ -46,7 +36,6 @@ services: Restart Immich to register the changes. ``` -docker compose down docker compose up -d ```