feat: Changes to storing media on external drive, not nfs (nfs was causing problems).

This commit is contained in:
2025-04-04 12:50:53 -04:00
parent 72034fb798
commit 4ef3546a4d
2 changed files with 3 additions and 15 deletions

View File

@@ -18,12 +18,12 @@ 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
- immich-uploads:/usr/src/app/upload
- /media/immich:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
ports:
- '2283:2283'
- "2283:2283"
depends_on:
- redis
- database
@@ -84,7 +84,7 @@ services:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
POSTGRES_INITDB_ARGS: "--data-checksums"
volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- immich-database:/var/lib/postgresql/data
@@ -119,15 +119,6 @@ networks:
volumes:
model-cache: {}
immich-uploads:
driver: local
driver_opts:
type: nfs
o: "addr=${NFS_URL},soft,nolock,rw"
device: "${UPLOAD_LOCATION}"
labels:
dev.housh.description: "Immich upload volume."
immich-database:
driver: local
labels:

View File

@@ -1,8 +1,5 @@
# 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=":/var/nfs/path/to/photo/library"
# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Etc/UTC