Skip to content

Commit

Permalink
Update Navidrome
Browse files Browse the repository at this point in the history
  • Loading branch information
azukaar authored Oct 13, 2023
1 parent 6cca7c0 commit f575e7b
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions servapps/Navidrome/cosmos-compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": [
{
Expand All @@ -61,9 +54,9 @@
"Enabled": true
},
"AuthEnabled": true,
"AuthAdmin": {
"if": "Context.adminOnly"
}
{if Context.adminOnly}
, "AuthAdmin": true
{/if}
}
]
}
Expand Down

0 comments on commit f575e7b

Please sign in to comment.