From 2e889323eff365dff14293d9691153ee4544693c Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 26 Aug 2026 22:51:37 -0700 Subject: [PATCH] Fix: correct immich.env-example paths to match real on-disk data (UPLOAD_LOCATION, BULK_UPLOAD_LOCATION, DB_DATA_LOCATION) after 2026-08-26 incident where generic template paths were wrong --- immich/immich.env-example | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/immich/immich.env-example b/immich/immich.env-example index d1a1553..2174902 100644 --- a/immich/immich.env-example +++ b/immich/immich.env-example @@ -1,11 +1,25 @@ # Immich stack environment variables - EXAMPLE -# Copy to immich.env and fill in actual values -# Pattern C (partial): DB_PASSWORD as Docker secret (_FILE), IMMICH_KIOSK_BASICAUTH in host .env (Traefik label) +# Copy this to immich.env (untracked, see .gitignore) and fill in +# IMMICH_KIOSK_BASICAUTH with a real value. Do NOT commit immich.env. +# +# Pattern C (partial): DB_PASSWORD as Docker secret (_FILE), IMMICH_KIOSK_BASICAUTH +# in host .env (Traefik label). +# +# NOTE 2026-08-26: the paths below are the REAL, confirmed-correct values for +# this homelab (verified via `docker service inspect immich_ --format +# '{{json .PreviousSpec.TaskTemplate.ContainerSpec.Mounts}}'` against actual +# on-disk data). An earlier version of this file had plausible-looking but +# WRONG generic paths (/volume1/docker/immich/db, /volume1/docker/immich/uploads), +# which caused a real incident when immich.env was regenerated from this +# template without checking against the live services first. If you ever +# need to regenerate immich.env from this file, these paths should still be +# correct — but if in doubt, re-verify with the PreviousSpec command above +# before deploying. IMMICH_VERSION=release -UPLOAD_LOCATION=/volume1/docker/immich/uploads -BULK_UPLOAD_LOCATION=/volume1/docker/immich/bulk-uploads -DB_DATA_LOCATION=/volume1/docker/immich/db +UPLOAD_LOCATION=/volume1/Immich-Photos/ +BULK_UPLOAD_LOCATION=/volume1/Immich-Photos/bulk-upload +DB_DATA_LOCATION=/volume1/docker/immich-postgresql REDIS_DATA_LOCATION=/volume1/docker/immich/redis DB_USERNAME=immich @@ -20,4 +34,4 @@ REDIS_DBINDEX=0 IMMICH_TRUSTED_PROXIES=172.16.0.0/12 IMMICH_TRAEFIK_HOST=immich.bryanmail.net IMMICH_KIOSK_HOST=immich-kiosk.bryanmail.net -IMMICH_KIOSK_BASICAUTH=user:password +IMMICH_KIOSK_BASICAUTH=user:changeme