- 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>
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
services:
|
|
|
|
server:
|
|
image: ghcr.io/nmemmert/shpm:main
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
PORT: "3000"
|
|
DB_PATH: /data/library.db
|
|
POSTER_DIR: /data/posters
|
|
NODE_ENV: production
|
|
volumes:
|
|
- type: volume
|
|
source: luma_data
|
|
target: /data
|
|
- type: bind
|
|
source: /media/Plex/Gallery
|
|
target: /photos
|
|
read_only: true
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/health"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
worker:
|
|
image: ghcr.io/nmemmert/shpm:main
|
|
restart: unless-stopped
|
|
command: ["node", "worker/index.js"]
|
|
environment:
|
|
DB_PATH: /data/library.db
|
|
POSTER_DIR: /data/posters
|
|
PHOTO_DIR: /photos
|
|
volumes:
|
|
- type: volume
|
|
source: luma_data
|
|
target: /data
|
|
- type: bind
|
|
source: /media/Plex/Gallery
|
|
target: /photos
|
|
read_only: true
|
|
depends_on:
|
|
server:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
luma_data:
|