Connect sonarr to deluge

This commit is contained in:
2025-11-18 21:37:12 +11:00
parent a3eaab5a07
commit d84eb73db0
4 changed files with 64 additions and 37 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
job "deluge" {
group "deluge" {
network {
//mode = "bridge"
mode = "bridge"
port "http" {
to = 8112
}
@@ -42,6 +42,49 @@ EOH
}
}
# Service for Traefik (external ingress)
service {
name = "deluge"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.deluge.middlewares=auth@file",
]
check {
type = "http"
path = "/"
interval = "10s"
timeout = "2s"
}
}
# Service for Consul Connect (internal mesh communication)
service {
name = "deluge-api"
port = "http"
address_mode = "alloc" # Use allocation IP for Connect as the sidecar can't access the host's published port (hairpin/loopback NAT issue)
# tags = [
# "traefik.enable=false",
# ]
connect {
sidecar_service {
//tags = ["traefik.enable=false"]
}
}
check {
type = "http"
path = "/"
interval = "10s"
timeout = "2s"
}
}
task "deluge" {
driver = "docker"
@@ -68,24 +111,6 @@ EOH
read_only = false
}
service {
name = "deluge"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.deluge.middlewares=auth@file",
]
check {
name = "alive"
type = "tcp"
port = "http"
interval = "10s"
timeout = "2s"
}
}
resources {
cpu = 400
memory = 2048

View File

@@ -1,7 +1,5 @@
job "sonarr" {
group "sonarr" {
count = 1
network {
mode = "bridge"
port "http" {
@@ -16,6 +14,10 @@ job "sonarr" {
destination_name = "postgres"
local_bind_port = 5432
}
upstreams {
destination_name = "deluge-api"
local_bind_port = 8112
}
}
}
}