Connect sonarr to deluge
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user