test(entrypoint): use local data folder and new DB name
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s

This commit is contained in:
2026-04-27 10:36:54 -07:00
parent 45e40bf273
commit 33b84be0a5

View File

@@ -81,19 +81,19 @@ start_app() {
echo "Node is Primary. Starting Navidrome..." echo "Node is Primary. Starting Navidrome..."
# Ensure shared directories exist on persistent host volume # Ensure shared directories exist on persistent host volume
mkdir -p /data/plugins /data/cache /data/backup mkdir -p /local/navidrome_v2/plugins /local/navidrome_v2/cache /local/navidrome_v2/backup
# 1. Set the DataFolder to the host mount (supports mkdir) # 1. Set the DataFolder to the local task mount
export ND_DATAFOLDER="/data" export ND_DATAFOLDER="/local/navidrome_v2"
# 2. Redirect other folders just in case # 2. Redirect other folders just in case
export ND_CACHEFOLDER="/data/cache" export ND_CACHEFOLDER="/local/navidrome_v2/cache"
export ND_BACKUP_PATH="/data/backup" export ND_BACKUP_PATH="/local/navidrome_v2/backup"
export ND_PLUGINS_FOLDER="/data/plugins" export ND_PLUGINS_FOLDER="/local/navidrome_v2/plugins"
# 3. Start Navidrome with ND_DBPATH environment variable. # 3. Start Navidrome with ND_DBPATH environment variable.
# This is the most authoritative way to set the DB location. # This is the most authoritative way to set the DB location.
export ND_DBPATH="/litefs/navidrome.db?_busy_timeout=15000" export ND_DBPATH="/litefs/navidrome_v2.db?_busy_timeout=15000"
/app/navidrome & /app/navidrome &
NAVIDROME_PID=$! NAVIDROME_PID=$!