fix: correct volume types and photo path in docker-compose

- Use explicit type: volume for the luma_data named volume so compose
  managers (CasaOS etc.) don't misinterpret it as a bind mount
- Use type: bind / read_only: true for the photo directory
- Both server and worker now reference /media/Plex/Gallery consistently
- Worker was previously left with the placeholder path, causing it to
  watch a non-existent directory and index nothing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 4.6 committed 2026-08-18 08:31:49 -04:00
1 parent 3429ec1d80
commit 5ff7f38b85
1 file changed
+14 -4
+14 -4
View File
@@ -11,8 +11,13 @@ services:
POSTER_DIR: /data/posters POSTER_DIR: /data/posters
NODE_ENV: production NODE_ENV: production
volumes: volumes:
- luma_data:/data - type: volume
- /your/photo/directory:/photos:ro # ← change this path source: luma_data
target: /data
- type: bind
source: /media/Plex/Gallery
target: /photos
read_only: true
healthcheck: healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/health"] test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/health"]
interval: 30s interval: 30s
@@ -29,8 +34,13 @@ services:
POSTER_DIR: /data/posters POSTER_DIR: /data/posters
PHOTO_DIR: /photos PHOTO_DIR: /photos
volumes: volumes:
- luma_data:/data - type: volume
- /your/photo/directory:/photos:ro # ← same path as server source: luma_data
target: /data
- type: bind
source: /media/Plex/Gallery
target: /photos
read_only: true
depends_on: depends_on:
server: server:
condition: service_healthy condition: service_healthy