diff --git a/entrypoint.sh b/entrypoint.sh index ed2e6e7..50444e7 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -56,8 +56,16 @@ while true; do } }" "${CONSUL_HTTP_ADDR}/v1/agent/service/register" + # Generate config file to force DB path + echo "Generating navidrome.toml..." + cat < /local/data/navidrome.toml +DataFolder = "/local/data" +DatabasePath = "/data/navidrome.db" +CacheFolder = "/shared_data/cache" +EOF + # Start Navidrome - /app/navidrome & + /app/navidrome --configfile /local/data/navidrome.toml & NAVIDROME_PID=$! echo "Navidrome started with PID $NAVIDROME_PID" fi