feat: use internal wrapper for consul registration
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s

This commit is contained in:
2026-02-07 18:14:19 -08:00
parent a10a50a6ea
commit 41874f0ace
14 changed files with 196 additions and 263 deletions

View File

@@ -29,7 +29,7 @@ job "navidrome-litefs" {
}
port "litefs" {
static = 20202
to = 20202 # Maps host 20202 to container 20202 (LiteFS Replication)
to = 8081 # Maps host 20202 to container 8081 (LiteFS Replication)
}
}
@@ -54,7 +54,7 @@ job "navidrome-litefs" {
# LiteFS Config
CONSUL_URL = "http://${attr.unique.network.ip-address}:8500"
ADVERTISE_IP = "${attr.unique.network.ip-address}"
PORT = "8080" # Internal proxy port
PORT = "8080" # Internal proxy port (unused but kept)
# Navidrome Config
ND_DATAFOLDER = "/local/data"
@@ -71,29 +71,7 @@ job "navidrome-litefs" {
ND_REVERSEPROXYUSERHEADER = "X-Forwarded-User"
}
service {
name = "navidrome"
tags = [
"navidrome",
"web",
"traefik.enable=true",
"urlprefix-/navidrome",
"tools",
"traefik.http.routers.navidromelan.rule=Host(`navidrome.service.dc1.consul`)",
"traefik.http.routers.navidromewan.rule=Host(`m.fbleagh.duckdns.org`)",
"traefik.http.routers.navidromewan.middlewares=dex@consulcatalog",
"traefik.http.routers.navidromewan.tls=true",
]
port = "http"
check {
type = "script"
command = "/bin/sh"
args = ["-c", "/usr/local/bin/litefs is-primary"]
interval = "10s"
timeout = "5s"
}
}
# NO service block here! Managed by register.sh inside the container.
resources {
cpu = 500
@@ -101,4 +79,4 @@ job "navidrome-litefs" {
}
}
}
}
}