This repository has been archived on 2026-06-15. You can view files and clone it, but cannot push or open issues or pull requests.
Files
MediaLore/docker-compose.yml
2026-03-26 23:41:52 -04:00

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