24 lines
867 B
YAML
24 lines
867 B
YAML
services:
|
|
app:
|
|
build: .
|
|
ports:
|
|
- 3000:3000
|
|
environment:
|
|
PORT: 3000
|
|
NODE_ENV: production
|
|
volumes:
|
|
# Runtime data — must map to /app/ since process.cwd() = /app in the container
|
|
- ./medialore.db:/app/medialore.db
|
|
- ./.thumbnails:/app/.thumbnails
|
|
# Library config — mounted as a directory so the atomic rename in the API works.
|
|
# A single-file bind-mount causes EBUSY on rename() because .tmp and the target
|
|
# end up on different devices. Initialize before first run:
|
|
# mkdir -p config && echo '[]' > config/libraries.json
|
|
- ./config:/config
|
|
|
|
# Mount your media folders and reference them in libraries.json using
|
|
# absolute /data/ paths, e.g. { "path": "/data/Games" }
|
|
- ./data:/data:ro
|
|
# - /path/to/your/movies:/data/Movies:ro
|
|
restart: unless-stopped
|