439 lines
12 KiB
JSON
439 lines
12 KiB
JSON
{
|
|
"Affinities": null,
|
|
"AllAtOnce": false,
|
|
"Constraints": [
|
|
{
|
|
"LTarget": "${attr.unique.hostname}",
|
|
"Operand": "regexp",
|
|
"RTarget": "odroid.*"
|
|
}
|
|
],
|
|
"ConsulNamespace": "",
|
|
"CreateIndex": 13928915,
|
|
"Datacenters": [
|
|
"dc1"
|
|
],
|
|
"DispatchIdempotencyToken": "",
|
|
"Dispatched": false,
|
|
"ID": "navidrome",
|
|
"JobModifyIndex": 14171074,
|
|
"Meta": null,
|
|
"ModifyIndex": 14171094,
|
|
"Multiregion": null,
|
|
"Name": "navidrome",
|
|
"Namespace": "default",
|
|
"NodePool": "default",
|
|
"NomadTokenID": "",
|
|
"ParameterizedJob": null,
|
|
"ParentID": "",
|
|
"Payload": null,
|
|
"Periodic": null,
|
|
"Priority": 50,
|
|
"Region": "global",
|
|
"Spreads": null,
|
|
"Stable": true,
|
|
"Status": "running",
|
|
"StatusDescription": "",
|
|
"Stop": false,
|
|
"SubmitTime": 1762404740673447473,
|
|
"TaskGroups": [
|
|
{
|
|
"Affinities": null,
|
|
"Constraints": null,
|
|
"Consul": null,
|
|
"Count": 1,
|
|
"Disconnect": null,
|
|
"EphemeralDisk": {
|
|
"Migrate": false,
|
|
"SizeMB": 300,
|
|
"Sticky": false
|
|
},
|
|
"MaxClientDisconnect": null,
|
|
"Meta": null,
|
|
"Migrate": {
|
|
"HealthCheck": "checks",
|
|
"HealthyDeadline": 300000000000,
|
|
"MaxParallel": 1,
|
|
"MinHealthyTime": 10000000000
|
|
},
|
|
"Name": "navidrome",
|
|
"Networks": [
|
|
{
|
|
"ReservedPorts": [
|
|
{
|
|
"HostNetwork": "default",
|
|
"Label": "http",
|
|
"To": 4533,
|
|
"Value": 4533
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PreventRescheduleOnLost": false,
|
|
"ReschedulePolicy": {
|
|
"Attempts": 0,
|
|
"Delay": 30000000000,
|
|
"DelayFunction": "exponential",
|
|
"Interval": 0,
|
|
"MaxDelay": 3600000000000,
|
|
"Unlimited": true
|
|
},
|
|
"RestartPolicy": {
|
|
"Attempts": 2,
|
|
"Delay": 15000000000,
|
|
"Interval": 1800000000000,
|
|
"Mode": "fail",
|
|
"RenderTemplates": false
|
|
},
|
|
"Scaling": null,
|
|
"Services": null,
|
|
"ShutdownDelay": null,
|
|
"Spreads": null,
|
|
"StopAfterClientDisconnect": null,
|
|
"Tasks": [
|
|
{
|
|
"Actions": null,
|
|
"Affinities": null,
|
|
"Artifacts": null,
|
|
"CSIPluginConfig": null,
|
|
"Config": {
|
|
"args": [
|
|
"restore",
|
|
"-if-replica-exists",
|
|
"-if-db-not-exists",
|
|
"-o",
|
|
"/alloc/tmp/navidrome.db",
|
|
"sftp://root:odroid@192.168.4.63/mnt/Shares/litestream/navidrome.db"
|
|
],
|
|
"volumes": [
|
|
"/mnt/configs/navidrome:/data"
|
|
],
|
|
"image": "litestream/litestream:latest"
|
|
},
|
|
"Constraints": null,
|
|
"Consul": null,
|
|
"DispatchPayload": null,
|
|
"Driver": "docker",
|
|
"Env": null,
|
|
"Identities": null,
|
|
"Identity": {
|
|
"Audience": [
|
|
"nomadproject.io"
|
|
],
|
|
"ChangeMode": "",
|
|
"ChangeSignal": "",
|
|
"Env": false,
|
|
"File": false,
|
|
"Filepath": "",
|
|
"Name": "default",
|
|
"ServiceName": "",
|
|
"TTL": 0
|
|
},
|
|
"KillSignal": "",
|
|
"KillTimeout": 5000000000,
|
|
"Kind": "",
|
|
"Leader": false,
|
|
"Lifecycle": {
|
|
"Hook": "prestart",
|
|
"Sidecar": false
|
|
},
|
|
"LogConfig": {
|
|
"Disabled": false,
|
|
"MaxFileSizeMB": 10,
|
|
"MaxFiles": 10
|
|
},
|
|
"Meta": null,
|
|
"Name": "restore",
|
|
"Resources": {
|
|
"CPU": 100,
|
|
"Cores": 0,
|
|
"Devices": null,
|
|
"DiskMB": 0,
|
|
"IOPS": 0,
|
|
"MemoryMB": 300,
|
|
"MemoryMaxMB": 0,
|
|
"NUMA": null,
|
|
"Networks": null,
|
|
"SecretsMB": 0
|
|
},
|
|
"RestartPolicy": {
|
|
"Attempts": 2,
|
|
"Delay": 15000000000,
|
|
"Interval": 1800000000000,
|
|
"Mode": "fail",
|
|
"RenderTemplates": false
|
|
},
|
|
"ScalingPolicies": null,
|
|
"Schedule": null,
|
|
"Services": null,
|
|
"ShutdownDelay": 0,
|
|
"Templates": null,
|
|
"User": "",
|
|
"Vault": null,
|
|
"VolumeMounts": null
|
|
},
|
|
{
|
|
"Actions": null,
|
|
"Affinities": null,
|
|
"Artifacts": null,
|
|
"CSIPluginConfig": null,
|
|
"Config": {
|
|
"memory_hard_limit": "2048",
|
|
"ports": [
|
|
"http"
|
|
],
|
|
"volumes": [
|
|
"/mnt/Public/Downloads/Clean_Music:/music/CleanMusic:ro",
|
|
"/mnt/Public/Downloads/news/slskd/downloads:/music/slskd:ro",
|
|
"/mnt/Public/Downloads/incoming_music:/music/incomingmusic:ro",
|
|
"/mnt/configs/navidrome:/data"
|
|
],
|
|
"image": "ghcr.io/navidrome/navidrome:latest"
|
|
},
|
|
"Constraints": [
|
|
{
|
|
"LTarget": "${attr.consul.version}",
|
|
"Operand": "semver",
|
|
"RTarget": ">= 1.8.0"
|
|
}
|
|
],
|
|
"Consul": null,
|
|
"DispatchPayload": null,
|
|
"Driver": "docker",
|
|
"Env": {
|
|
"ND_BACKUP_COUNT": "7",
|
|
"ND_BACKUP_SCHEDULE": "0 0 * * *",
|
|
"ND_LOGLEVEL": "debug",
|
|
"ND_DATAFOLDER": "/alloc/tmp/",
|
|
"ND_REVERSEPROXYWHITELIST": "0.0.0.0/0",
|
|
"ND_SCANSCHEDULE": "32 8-20 * * *",
|
|
"ND_SCANNER_GROUPALBUMRELEASES": "False",
|
|
"ND_REVERSEPROXYUSERHEADER": "X-Forwarded-User",
|
|
"ND_BACKUP_PATH": "/data",
|
|
"ND_CACHEFOLDER": "./data/cache"
|
|
},
|
|
"Identities": null,
|
|
"Identity": {
|
|
"Audience": [
|
|
"nomadproject.io"
|
|
],
|
|
"ChangeMode": "",
|
|
"ChangeSignal": "",
|
|
"Env": false,
|
|
"File": false,
|
|
"Filepath": "",
|
|
"Name": "default",
|
|
"ServiceName": "",
|
|
"TTL": 0
|
|
},
|
|
"KillSignal": "",
|
|
"KillTimeout": 5000000000,
|
|
"Kind": "",
|
|
"Leader": false,
|
|
"Lifecycle": null,
|
|
"LogConfig": {
|
|
"Disabled": false,
|
|
"MaxFileSizeMB": 10,
|
|
"MaxFiles": 10
|
|
},
|
|
"Meta": null,
|
|
"Name": "navidrome",
|
|
"Resources": {
|
|
"CPU": 100,
|
|
"Cores": 0,
|
|
"Devices": null,
|
|
"DiskMB": 0,
|
|
"IOPS": 0,
|
|
"MemoryMB": 128,
|
|
"MemoryMaxMB": 0,
|
|
"NUMA": null,
|
|
"Networks": null,
|
|
"SecretsMB": 0
|
|
},
|
|
"RestartPolicy": {
|
|
"Attempts": 2,
|
|
"Delay": 15000000000,
|
|
"Interval": 1800000000000,
|
|
"Mode": "fail",
|
|
"RenderTemplates": false
|
|
},
|
|
"ScalingPolicies": null,
|
|
"Schedule": null,
|
|
"Services": [
|
|
{
|
|
"Address": "",
|
|
"AddressMode": "auto",
|
|
"CanaryMeta": null,
|
|
"CanaryTags": null,
|
|
"Checks": [
|
|
{
|
|
"AddressMode": "",
|
|
"Args": null,
|
|
"Body": "",
|
|
"CheckRestart": null,
|
|
"Command": "",
|
|
"Expose": false,
|
|
"FailuresBeforeCritical": 0,
|
|
"FailuresBeforeWarning": 0,
|
|
"GRPCService": "",
|
|
"GRPCUseTLS": false,
|
|
"Header": null,
|
|
"InitialStatus": "",
|
|
"Interval": 10000000000,
|
|
"Method": "",
|
|
"Name": "service: \"navidrome\" check",
|
|
"Notes": "",
|
|
"OnUpdate": "require_healthy",
|
|
"Path": "",
|
|
"PortLabel": "",
|
|
"Protocol": "",
|
|
"SuccessBeforePassing": 0,
|
|
"TLSServerName": "",
|
|
"TLSSkipVerify": false,
|
|
"TaskName": "navidrome",
|
|
"Timeout": 2000000000,
|
|
"Type": "tcp"
|
|
}
|
|
],
|
|
"Cluster": "default",
|
|
"Connect": null,
|
|
"EnableTagOverride": false,
|
|
"Identity": null,
|
|
"Meta": null,
|
|
"Name": "navidrome",
|
|
"Namespace": "default",
|
|
"OnUpdate": "require_healthy",
|
|
"PortLabel": "http",
|
|
"Provider": "consul",
|
|
"TaggedAddresses": null,
|
|
"Tags": [
|
|
"navidrome",
|
|
"web",
|
|
"urlprefix-/navidrome",
|
|
"tools",
|
|
"traefik.http.routers.navidromelan.rule=Host(`navidrome.service.dc1.consul`)",
|
|
"traefik.http.routers.navidromewan.rule=Host(`fbleagh-m.ignorelist.com`)",
|
|
"traefik.http.routers.navidromewan.rule=Host(`m.fbleagh.duckdns.org`,`m.fbleagh.dedyn.io`)",
|
|
"traefik.http.routers.navidromewan.middlewares=dex@consulcatalog",
|
|
"traefik.http.routers.navidromewan.tls=true"
|
|
],
|
|
"TaskName": "navidrome",
|
|
"Weights": null
|
|
}
|
|
],
|
|
"ShutdownDelay": 0,
|
|
"Templates": null,
|
|
"User": "",
|
|
"Vault": null,
|
|
"VolumeMounts": null
|
|
},
|
|
{
|
|
"Actions": null,
|
|
"Affinities": null,
|
|
"Artifacts": null,
|
|
"CSIPluginConfig": null,
|
|
"Config": {
|
|
"image": "litestream/litestream:latest",
|
|
"args": [
|
|
"replicate",
|
|
"/alloc/tmp/navidrome.db",
|
|
"sftp://root:odroid@192.168.4.63/mnt/Shares/litestream/navidrome.db"
|
|
],
|
|
"volumes": [
|
|
"/mnt/configs/navidrome:/data"
|
|
]
|
|
},
|
|
"Constraints": null,
|
|
"Consul": null,
|
|
"DispatchPayload": null,
|
|
"Driver": "docker",
|
|
"Env": null,
|
|
"Identities": null,
|
|
"Identity": {
|
|
"Audience": [
|
|
"nomadproject.io"
|
|
],
|
|
"ChangeMode": "",
|
|
"ChangeSignal": "",
|
|
"Env": false,
|
|
"File": false,
|
|
"Filepath": "",
|
|
"Name": "default",
|
|
"ServiceName": "",
|
|
"TTL": 0
|
|
},
|
|
"KillSignal": "",
|
|
"KillTimeout": 5000000000,
|
|
"Kind": "",
|
|
"Leader": false,
|
|
"Lifecycle": {
|
|
"Hook": "poststart",
|
|
"Sidecar": true
|
|
},
|
|
"LogConfig": {
|
|
"Disabled": false,
|
|
"MaxFileSizeMB": 10,
|
|
"MaxFiles": 10
|
|
},
|
|
"Meta": null,
|
|
"Name": "litestream",
|
|
"Resources": {
|
|
"CPU": 100,
|
|
"Cores": 0,
|
|
"Devices": null,
|
|
"DiskMB": 0,
|
|
"IOPS": 0,
|
|
"MemoryMB": 300,
|
|
"MemoryMaxMB": 0,
|
|
"NUMA": null,
|
|
"Networks": null,
|
|
"SecretsMB": 0
|
|
},
|
|
"RestartPolicy": {
|
|
"Attempts": 2,
|
|
"Delay": 15000000000,
|
|
"Interval": 1800000000000,
|
|
"Mode": "fail",
|
|
"RenderTemplates": false
|
|
},
|
|
"ScalingPolicies": null,
|
|
"Schedule": null,
|
|
"Services": null,
|
|
"ShutdownDelay": 0,
|
|
"Templates": null,
|
|
"User": "",
|
|
"Vault": null,
|
|
"VolumeMounts": null
|
|
}
|
|
],
|
|
"Update": {
|
|
"AutoPromote": false,
|
|
"AutoRevert": false,
|
|
"Canary": 0,
|
|
"HealthCheck": "checks",
|
|
"HealthyDeadline": 300000000000,
|
|
"MaxParallel": 1,
|
|
"MinHealthyTime": 10000000000,
|
|
"ProgressDeadline": 600000000000,
|
|
"Stagger": 30000000000
|
|
},
|
|
"Volumes": null
|
|
}
|
|
],
|
|
"Type": "service",
|
|
"UI": null,
|
|
"Update": {
|
|
"AutoPromote": false,
|
|
"AutoRevert": false,
|
|
"Canary": 0,
|
|
"HealthCheck": "",
|
|
"HealthyDeadline": 0,
|
|
"MaxParallel": 1,
|
|
"MinHealthyTime": 0,
|
|
"ProgressDeadline": 0,
|
|
"Stagger": 30000000000
|
|
},
|
|
"VaultNamespace": "",
|
|
"Version": 22,
|
|
"VersionTag": null
|
|
} |