chore(localdev): bind plex_media to a local test dir instead of the nas.lan SMB share
The nas.lan CIFS share was too slow for dev playback, so localdev now binds a small local Plex test tree (a few movies/shows mirroring the server's /data/<lib>/… layout) at /plex-media. Driven by PLEX_MEDIA_HOST_PATH in .env (gitignored) — default points at the Docker-Desktop host path for D:\plex-test-media. The old CIFS/PLEX_SMB_* approach stays in git history.
This commit is contained in:
+13
-10
@@ -107,16 +107,19 @@ services:
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
# OPTIONAL (Plex integration dev testing): the Plex media, mounted READ-ONLY from the SMB share
|
||||
# so the container can play the physical file locally (this dev box isn't the Plex host). Uses a
|
||||
# dedicated read-only samba user via PLEX_SMB_USER/PLEX_SMB_PASS in .env. Only referenced when the
|
||||
# Plex module is enabled; harmless otherwise (Docker mounts it lazily on first container use). On
|
||||
# prod (LXC on the Plex host) this is a plain host bind-mount instead — no SMB.
|
||||
# OPTIONAL (Plex integration dev testing): the Plex media, mounted READ-ONLY so the container can
|
||||
# play the physical file locally (this dev box isn't the Plex host). Only referenced when the Plex
|
||||
# module is enabled; harmless otherwise (Docker mounts it lazily on first container use). On prod
|
||||
# (LXC on the Plex host) this is a plain host bind-mount.
|
||||
#
|
||||
# Local bind to a few test movies/shows kept on this box — the full nas.lan SMB share was too slow.
|
||||
# Point PLEX_MEDIA_HOST_PATH (.env, gitignored, so no site path lives in the tracked compose) at the
|
||||
# Docker-Desktop host path (e.g. /run/desktop/mnt/host/d/plex-test-media for D:\plex-test-media),
|
||||
# mirroring the Plex server's /data/<lib>/… layout so plex_path_map (/data=/plex-media) resolves.
|
||||
# (The prior CIFS/PLEX_SMB_* approach for the whole nas.lan share lives in git history.)
|
||||
plex_media:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: cifs
|
||||
# Host/share + credentials come from .env (gitignored) so no site-specific values live in
|
||||
# the tracked compose: PLEX_SMB_HOST, PLEX_SMB_SHARE, PLEX_SMB_USER, PLEX_SMB_PASS.
|
||||
device: "//${PLEX_SMB_HOST:-localhost}/${PLEX_SMB_SHARE:-data}"
|
||||
o: "username=${PLEX_SMB_USER:-},password=${PLEX_SMB_PASS:-},ro,vers=3.0,uid=1000,gid=1000,file_mode=0444,dir_mode=0555"
|
||||
type: none
|
||||
o: bind
|
||||
device: "${PLEX_MEDIA_HOST_PATH:-/run/desktop/mnt/host/d/plex-test-media}"
|
||||
|
||||
Reference in New Issue
Block a user