From f575e7baf419163fbad73d8ecaaa6f3d0ef7ea2e Mon Sep 17 00:00:00 2001 From: Yann Stepienik <7872597+azukaar@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:15:53 +0100 Subject: [PATCH] Update Navidrome --- servapps/Navidrome/cosmos-compose.json | 29 ++++++++++---------------- 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/servapps/Navidrome/cosmos-compose.json b/servapps/Navidrome/cosmos-compose.json index 885f14fe..31f5a861 100644 --- a/servapps/Navidrome/cosmos-compose.json +++ b/servapps/Navidrome/cosmos-compose.json @@ -4,23 +4,16 @@ { "name": "musicPath", "label": "What is the path to your music? (leave empty to not mount anything)", - "initialValue": "{DefaultDataPath}/music", - "type": "text" - }, - { - "name": "dataPath", - "label": "What is the path to your data? (leave empty to not mount anything)", - "initialValue": "{DefaultDataPath}/data", + "initialValue": "{DefaultDataPath}/musics", "type": "text" } ] }, "services": { - "navidrome": { + "{ServiceName}": { "image": "deluan/navidrome:latest", "container_name": "{ServiceName}", "user": "1000:1000", - "ports": ["4533:4533"], "restart": "unless-stopped", "environment": { "ND_SCANSCHEDULE": "1h", @@ -31,21 +24,21 @@ "labels": { "cosmos-force-network-secured": "true", "cosmos-auto-update": "true", - "cosmos-icon": "https://github.com/navidrome/navidrome/blob/master/ui/public/android-chrome-512x512.png" + "cosmos-icon": "https://azukaar.github.io/cosmos-servapps-official/servapps/Navidrome/icon.png" }, "volumes": [ { - "source": "{Context.dataPath}", + "source": "{ServiceName}-data", "target": "/data", "type": "volume", - "if": "Context.dataPath" }, - { + {if Context.musicPath} + , { "source": "{Context.musicPath}", - "target": "/music:ro", + "target": "/music", "type": "bind", - "if": "Context.musicPath" } + {/if} ], "routes": [ { @@ -61,9 +54,9 @@ "Enabled": true }, "AuthEnabled": true, - "AuthAdmin": { - "if": "Context.adminOnly" - } + {if Context.adminOnly} + , "AuthAdmin": true + {/if} } ] }