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:
2026-08-08 02:25:11 +02:00
parent 97c584733a
commit d228865222
+13 -10
View File
@@ -107,16 +107,19 @@ services:
volumes: volumes:
pgdata: pgdata:
# OPTIONAL (Plex integration dev testing): the Plex media, mounted READ-ONLY from the SMB share # OPTIONAL (Plex integration dev testing): the Plex media, mounted READ-ONLY so the container can
# so the container can play the physical file locally (this dev box isn't the Plex host). Uses a # play the physical file locally (this dev box isn't the Plex host). Only referenced when the Plex
# dedicated read-only samba user via PLEX_SMB_USER/PLEX_SMB_PASS in .env. Only referenced when the # module is enabled; harmless otherwise (Docker mounts it lazily on first container use). On prod
# Plex module is enabled; harmless otherwise (Docker mounts it lazily on first container use). On # (LXC on the Plex host) this is a plain host bind-mount.
# prod (LXC on the Plex host) this is a plain host bind-mount instead — no SMB. #
# 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: plex_media:
driver: local driver: local
driver_opts: driver_opts:
type: cifs type: none
# Host/share + credentials come from .env (gitignored) so no site-specific values live in o: bind
# the tracked compose: PLEX_SMB_HOST, PLEX_SMB_SHARE, PLEX_SMB_USER, PLEX_SMB_PASS. device: "${PLEX_MEDIA_HOST_PATH:-/run/desktop/mnt/host/d/plex-test-media}"
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"