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}"