From 6e7c729c5eef4e505c5b92fc088578757d10014a Mon Sep 17 00:00:00 2001 From: sstent Date: Mon, 27 Apr 2026 08:56:22 -0700 Subject: [PATCH] fix: use standard Navidrome variables to isolate DB on LiteFS and metadata on host volume --- entrypoint.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 57cc659..d66e6e7 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -84,8 +84,15 @@ start_app() { # Ensure shared directories exist on persistent host volume mkdir -p /data/plugins /data/cache /data/backup - # Tell Navidrome to use the database directly from the LiteFS mount. - export ND_DBPATH="/litefs/navidrome.db?cache=shared&_busy_timeout=15000&_journal_mode=WAL&_foreign_keys=on" + # Officially supported variables to split the database from the metadata + export ND_DATAFOLDER="/litefs" + export ND_CACHEFOLDER="/data/cache" + export ND_BACKUP_PATH="/data/backup" + export ND_PLUGINS_FOLDER="/data/plugins" + + # We can still pass the SQLite optimization flags via ND_DBPATH + # but we'll use a relative path so it respects ND_DATAFOLDER + export ND_DBPATH="navidrome.db?cache=shared&_busy_timeout=15000&_journal_mode=WAL&_foreign_keys=on" /app/navidrome & NAVIDROME_PID=$!