fix: use static ports and docker port mapping
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 40s

This commit is contained in:
2026-02-07 17:33:25 -08:00
parent fa838f21c0
commit 29c9c697ee
2 changed files with 22 additions and 12 deletions

View File

@@ -8,18 +8,20 @@ data:
# Use Consul for leader election
lease:
type: "consul"
advertise-url: "http://${ADVERTISE_IP}:8081"
advertise-url: "http://${ADVERTISE_IP}:20202"
consul:
url: "${CONSUL_URL}"
key: "litefs/navidrome"
# Internal HTTP API for replication
http:
addr: "0.0.0.0:8081"
addr: ":20202"
# The HTTP Proxy routes traffic to handle write-forwarding
# It listens on 8080 inside the container.
# Nomad will map host 4533 to this port.
proxy:
addr: ":${PORT}"
addr: ":8080"
target: "localhost:4533"
db: "navidrome.db"
passthrough:
@@ -29,4 +31,4 @@ proxy:
- "*.jpg"
- "*.jpeg"
- "*.gif"
- "*.svg"
- "*.svg"