A bind-mounted host directory made the app report storage as ready while media landed on the container host's local filesystem, so the NFS export was never actually used. mediaStorage() now reads the mount table: a share written as host:/export is only accepted when the media root is on a network filesystem, otherwise uploads, edits and filing are blocked with the real device and the fix. Settings and the Media page show the detected filesystem and host-mount steps, README section 9 documents the OS-level mount (including Docker-in-LXC) with docker-compose.nfs.yml as the alternative, and the E2E suites use path-style shares for local test directories. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
+4
-2
@@ -52,8 +52,10 @@ services:
|
||||
# (with an in-app warning) until it is configured and writable.
|
||||
UPLOAD_DIR: /tmp/uploads
|
||||
# Primary storage inside the container for original event photos and videos.
|
||||
# For NFS, mount the export on the Docker host, set MEDIA_ARCHIVE_DIR to
|
||||
# that host path, and restart:
|
||||
# For NFS, either let Docker mount the export itself:
|
||||
# docker compose -f docker-compose.yml -f docker-compose.nfs.yml up -d
|
||||
# or mount the export on the Docker host, set MEDIA_ARCHIVE_DIR to that
|
||||
# host path, and restart:
|
||||
# MEDIA_ARCHIVE_DIR=/mnt/nfs/glenloch docker compose up -d
|
||||
# Then set the share name and folder in Settings → Media storage. The
|
||||
# default named volume exists only so the stack boots; it is not accepted
|
||||
|
||||
Reference in New Issue
Block a user