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
Garret Patti 334d62e3b3
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m3s
fix docker auth
2026-04-05 19:59:24 -04:00

29 lines
1.1 KiB
YAML

services:
app:
build: .
ports:
- 3000:3000
environment:
PORT: 3000
NODE_ENV: production
# CONFIG_PATH points db.ts and secret.ts at the config volume so medialore.db
# and .session_secret are created as files inside an existing directory mount.
# Without this Docker will create ./medialore.db on the host as an empty directory,
# which causes better-sqlite3 to fail with SQLITE_CANTOPEN.
CONFIG_PATH: /config
# Set to "true" only when serving over HTTPS (e.g. behind a TLS reverse proxy).
# Keeping this "false" allows the session cookie to be sent over plain HTTP.
COOKIE_SECURE: "false"
volumes:
- ./.thumbnails:/app/.thumbnails
# Library config, database, and session secret — all in one directory volume.
# 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