From 0b8b99a4ed67bc716721d705f6641f89079a5806 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Thu, 10 Apr 2025 10:50:28 -0400 Subject: [PATCH] feat: Adds host mount. --- compose.yml | 2 +- example.env | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/compose.yml b/compose.yml index e0f11a1..99445a1 100644 --- a/compose.yml +++ b/compose.yml @@ -18,7 +18,7 @@ services: # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding volumes: # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file - - /media/immich:/usr/src/app/upload + - ${MEDIA_MNT}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env diff --git a/example.env b/example.env index a6401a4..ab44bfa 100644 --- a/example.env +++ b/example.env @@ -6,6 +6,8 @@ # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release +MEDIA_MNT=/mnt # Host path mount for media to be stored. + # Connection secret for postgres. You should change it to a random password # Please use only the characters `A-Za-z0-9`, without special characters or spaces DB_PASSWORD=postgres