fix: use dynamic port for litefs replication
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 55s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 55s
This commit is contained in:
@@ -8,14 +8,14 @@ data:
|
|||||||
# Use Consul for leader election
|
# Use Consul for leader election
|
||||||
lease:
|
lease:
|
||||||
type: "consul"
|
type: "consul"
|
||||||
advertise-url: "http://${ADVERTISE_IP}:20202"
|
advertise-url: "http://${ADVERTISE_IP}:${LITEFS_PORT}"
|
||||||
consul:
|
consul:
|
||||||
url: "${CONSUL_URL}"
|
url: "${CONSUL_URL}"
|
||||||
key: "litefs/navidrome"
|
key: "litefs/navidrome"
|
||||||
|
|
||||||
# Internal HTTP API for replication
|
# Internal HTTP API for replication
|
||||||
http:
|
http:
|
||||||
addr: "0.0.0.0:20202"
|
addr: "0.0.0.0:${LITEFS_PORT}"
|
||||||
|
|
||||||
# The HTTP Proxy routes traffic to handle write-forwarding
|
# The HTTP Proxy routes traffic to handle write-forwarding
|
||||||
proxy:
|
proxy:
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ job "navidrome-litefs" {
|
|||||||
network {
|
network {
|
||||||
mode = "host"
|
mode = "host"
|
||||||
port "http" {}
|
port "http" {}
|
||||||
|
port "litefs" {}
|
||||||
}
|
}
|
||||||
|
|
||||||
task "navidrome" {
|
task "navidrome" {
|
||||||
@@ -49,6 +50,7 @@ job "navidrome-litefs" {
|
|||||||
CONSUL_URL = "http://${attr.unique.network.ip-address}:8500"
|
CONSUL_URL = "http://${attr.unique.network.ip-address}:8500"
|
||||||
ADVERTISE_IP = "${attr.unique.network.ip-address}"
|
ADVERTISE_IP = "${attr.unique.network.ip-address}"
|
||||||
PORT = "${NOMAD_PORT_http}"
|
PORT = "${NOMAD_PORT_http}"
|
||||||
|
LITEFS_PORT = "${NOMAD_PORT_litefs}"
|
||||||
|
|
||||||
# Navidrome Config
|
# Navidrome Config
|
||||||
ND_DATAFOLDER = "/local/data"
|
ND_DATAFOLDER = "/local/data"
|
||||||
|
|||||||
Reference in New Issue
Block a user