Connect sonarr to deluge
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
|||||||
job "deluge" {
|
job "deluge" {
|
||||||
group "deluge" {
|
group "deluge" {
|
||||||
network {
|
network {
|
||||||
//mode = "bridge"
|
mode = "bridge"
|
||||||
port "http" {
|
port "http" {
|
||||||
to = 8112
|
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" {
|
task "deluge" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
@@ -68,24 +111,6 @@ EOH
|
|||||||
read_only = false
|
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 {
|
resources {
|
||||||
cpu = 400
|
cpu = 400
|
||||||
memory = 2048
|
memory = 2048
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
job "sonarr" {
|
job "sonarr" {
|
||||||
group "sonarr" {
|
group "sonarr" {
|
||||||
count = 1
|
|
||||||
|
|
||||||
network {
|
network {
|
||||||
mode = "bridge"
|
mode = "bridge"
|
||||||
port "http" {
|
port "http" {
|
||||||
@@ -16,6 +14,10 @@ job "sonarr" {
|
|||||||
destination_name = "postgres"
|
destination_name = "postgres"
|
||||||
local_bind_port = 5432
|
local_bind_port = 5432
|
||||||
}
|
}
|
||||||
|
upstreams {
|
||||||
|
destination_name = "deluge-api"
|
||||||
|
local_bind_port = 8112
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user