fix: use IP for advertise-url
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 54s

This commit is contained in:
2026-02-07 17:00:33 -08:00
parent e40509dfa7
commit ba129558df
2 changed files with 11 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ lease:
# Internal HTTP API for replication
http:
addr: ":20202"
advertise-url: "http://${ADVERTISE_IP}:20202"
# The HTTP Proxy routes traffic to handle write-forwarding
proxy:

View File

@@ -10,6 +10,13 @@ job "navidrome-litefs" {
group "navidrome" {
count = 2
update {
max_parallel = 1
min_healthy_time = "30s"
healthy_deadline = "5m"
auto_revert = false
}
constraint {
distinct_hosts = true
}
@@ -39,8 +46,9 @@ job "navidrome-litefs" {
env {
# LiteFS Config
CONSUL_URL = "http://${attr.unique.network.ip-address}:8500"
PORT = "${NOMAD_PORT_http}"
CONSUL_URL = "http://${attr.unique.network.ip-address}:8500"
ADVERTISE_IP = "${attr.unique.network.ip-address}"
PORT = "${NOMAD_PORT_http}"
# Navidrome Config
ND_DATAFOLDER = "/local/data"