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
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s
This commit is contained in:
@@ -81,19 +81,19 @@ start_app() {
|
||||
echo "Node is Primary. Starting Navidrome..."
|
||||
|
||||
# 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)
|
||||
export ND_DATAFOLDER="/data"
|
||||
# 1. Set the DataFolder to the local task mount
|
||||
export ND_DATAFOLDER="/local/navidrome_v2"
|
||||
|
||||
# 2. Redirect other folders just in case
|
||||
export ND_CACHEFOLDER="/data/cache"
|
||||
export ND_BACKUP_PATH="/data/backup"
|
||||
export ND_PLUGINS_FOLDER="/data/plugins"
|
||||
export ND_CACHEFOLDER="/local/navidrome_v2/cache"
|
||||
export ND_BACKUP_PATH="/local/navidrome_v2/backup"
|
||||
export ND_PLUGINS_FOLDER="/local/navidrome_v2/plugins"
|
||||
|
||||
# 3. Start Navidrome with ND_DBPATH environment variable.
|
||||
# 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 &
|
||||
NAVIDROME_PID=$!
|
||||
|
||||
Reference in New Issue
Block a user