From d2288652229ce7d874a9a5c33d455ba4dde396bd Mon Sep 17 00:00:00 2001 From: npeter83 Date: Sat, 8 Aug 2026 02:25:11 +0200 Subject: [PATCH] chore(localdev): bind plex_media to a local test dir instead of the nas.lan SMB share MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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//… 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. --- docker-compose.localdev.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/docker-compose.localdev.yml b/docker-compose.localdev.yml index 69621678..988afd6f 100644 --- a/docker-compose.localdev.yml +++ b/docker-compose.localdev.yml @@ -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//… 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}"