Files
shpm/docker-compose.yml
T

40 lines
936 B
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:
- luma_data:/data
- /your/photo/directory:/photos:ro # ← change this path
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:
- luma_data:/data
- /your/photo/directory:/photos:ro # ← same path as server
depends_on:
server:
condition: service_healthy
volumes:
luma_data: