2022-10-27 21:28:34 +00:00
|
|
|
job "ipdvr" {
|
|
|
|
region = "global"
|
|
|
|
datacenters = ["dc1"]
|
|
|
|
|
|
|
|
type = "service"
|
|
|
|
|
2023-02-27 19:43:07 +00:00
|
|
|
group "sabnzbd" {
|
|
|
|
network {
|
|
|
|
mode = "bridge"
|
|
|
|
|
|
|
|
port "main" {
|
2023-03-24 23:32:37 +00:00
|
|
|
host_network = "wesher"
|
2023-02-27 19:43:07 +00:00
|
|
|
to = 8080
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
volume "sabnzbd-config" {
|
|
|
|
type = "host"
|
|
|
|
read_only = false
|
|
|
|
source = "sabnzbd-config"
|
|
|
|
}
|
|
|
|
|
|
|
|
volume "media-downloads" {
|
|
|
|
type = "host"
|
|
|
|
read_only = false
|
|
|
|
source = "media-downloads"
|
|
|
|
}
|
|
|
|
|
|
|
|
service {
|
|
|
|
name = "sabnzbd"
|
2023-03-24 18:24:36 +00:00
|
|
|
provider = "nomad"
|
2023-02-27 19:43:07 +00:00
|
|
|
port = "main"
|
|
|
|
|
|
|
|
tags = [
|
|
|
|
"traefik.enable=true",
|
|
|
|
"traefik.http.routers.sabnzbd.entryPoints=websecure",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
task "sabnzbd" {
|
|
|
|
driver = "docker"
|
|
|
|
|
|
|
|
config {
|
|
|
|
image = "linuxserver/sabnzbd"
|
|
|
|
ports = ["main"]
|
|
|
|
}
|
|
|
|
|
|
|
|
env = {
|
|
|
|
"PGID" = 100
|
|
|
|
"PUID" = 1001
|
|
|
|
"TZ" = "America/Los_Angeles"
|
|
|
|
}
|
|
|
|
|
|
|
|
volume_mount {
|
|
|
|
volume = "sabnzbd-config"
|
|
|
|
destination = "/config"
|
|
|
|
read_only = false
|
|
|
|
}
|
|
|
|
|
|
|
|
volume_mount {
|
|
|
|
volume = "media-downloads"
|
|
|
|
destination = "/downloads"
|
|
|
|
read_only = false
|
|
|
|
}
|
|
|
|
|
|
|
|
resources {
|
|
|
|
cpu = 400
|
|
|
|
memory = 500
|
|
|
|
memory_max = 800
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-27 21:28:34 +00:00
|
|
|
group "nzbget" {
|
|
|
|
network {
|
|
|
|
mode = "bridge"
|
|
|
|
port "main" {
|
2023-03-24 23:32:37 +00:00
|
|
|
host_network = "wesher"
|
2023-03-27 22:23:55 +00:00
|
|
|
static = 6789
|
2022-10-27 21:28:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-28 20:16:49 +00:00
|
|
|
volume "nzbget-config" {
|
2022-10-27 21:28:34 +00:00
|
|
|
type = "host"
|
|
|
|
read_only = false
|
2023-02-28 20:16:49 +00:00
|
|
|
source = "nzbget-config"
|
2022-10-27 21:28:34 +00:00
|
|
|
}
|
|
|
|
|
2023-02-14 21:31:04 +00:00
|
|
|
volume "media-downloads" {
|
2022-10-27 21:28:34 +00:00
|
|
|
type = "host"
|
|
|
|
read_only = false
|
2023-02-14 21:31:04 +00:00
|
|
|
source = "media-downloads"
|
2022-10-27 21:28:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
service {
|
|
|
|
name = "nzbget"
|
2023-03-24 18:24:36 +00:00
|
|
|
provider = "nomad"
|
2022-10-27 21:28:34 +00:00
|
|
|
port = "main"
|
|
|
|
|
|
|
|
tags = [
|
|
|
|
"traefik.enable=true",
|
|
|
|
"traefik.http.routers.nzbget.entryPoints=websecure",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
task "nzbget" {
|
|
|
|
driver = "docker"
|
|
|
|
|
|
|
|
config {
|
|
|
|
image = "linuxserver/nzbget"
|
|
|
|
ports = ["main"]
|
|
|
|
}
|
|
|
|
|
|
|
|
env = {
|
|
|
|
"PGID" = 100
|
|
|
|
"PUID" = 1001
|
|
|
|
"TZ" = "America/Los_Angeles"
|
|
|
|
}
|
|
|
|
|
|
|
|
volume_mount {
|
2023-02-27 19:35:53 +00:00
|
|
|
volume = "nzbget-config"
|
2022-10-27 21:28:34 +00:00
|
|
|
destination = "/config"
|
|
|
|
read_only = false
|
|
|
|
}
|
|
|
|
|
|
|
|
volume_mount {
|
2023-02-14 21:31:04 +00:00
|
|
|
volume = "media-downloads"
|
2022-10-27 21:28:34 +00:00
|
|
|
destination = "/downloads"
|
|
|
|
read_only = false
|
|
|
|
}
|
|
|
|
|
|
|
|
resources {
|
|
|
|
cpu = 200
|
2023-02-27 19:35:53 +00:00
|
|
|
memory = 300
|
2022-10-27 21:28:34 +00:00
|
|
|
memory_max = 500
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
group "sonarr" {
|
|
|
|
network {
|
|
|
|
mode = "bridge"
|
|
|
|
port "main" {
|
2023-03-24 23:32:37 +00:00
|
|
|
host_network = "wesher"
|
2022-10-27 21:28:34 +00:00
|
|
|
to = 8989
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
volume "sonarr-data" {
|
|
|
|
type = "host"
|
|
|
|
read_only = false
|
|
|
|
source = "sonarr-data"
|
|
|
|
}
|
|
|
|
|
2023-02-14 21:31:04 +00:00
|
|
|
volume "media-write" {
|
2022-10-27 21:28:34 +00:00
|
|
|
type = "host"
|
|
|
|
read_only = false
|
2023-02-14 21:31:04 +00:00
|
|
|
source = "media-write"
|
2022-10-27 21:28:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
service {
|
|
|
|
name = "sonarr"
|
2023-03-24 18:24:36 +00:00
|
|
|
provider = "nomad"
|
2022-10-27 21:28:34 +00:00
|
|
|
port = "main"
|
|
|
|
|
|
|
|
tags = [
|
|
|
|
"traefik.enable=true",
|
|
|
|
"traefik.http.routers.sonarr.entryPoints=websecure",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
task "sonarr" {
|
|
|
|
driver = "docker"
|
|
|
|
|
|
|
|
config {
|
|
|
|
image = "linuxserver/sonarr"
|
|
|
|
ports = ["main"]
|
|
|
|
}
|
|
|
|
|
|
|
|
env = {
|
|
|
|
"PGID" = 100
|
|
|
|
"PUID" = 1001
|
|
|
|
"TZ" = "America/Los_Angeles"
|
|
|
|
}
|
|
|
|
|
|
|
|
volume_mount {
|
|
|
|
volume = "sonarr-data"
|
|
|
|
destination = "/config"
|
|
|
|
read_only = false
|
|
|
|
}
|
|
|
|
|
|
|
|
volume_mount {
|
2023-02-14 21:31:04 +00:00
|
|
|
volume = "media-write"
|
|
|
|
destination = "/media"
|
2022-10-27 21:28:34 +00:00
|
|
|
read_only = false
|
|
|
|
}
|
|
|
|
|
|
|
|
resources {
|
|
|
|
cpu = 100
|
2023-05-09 18:40:31 +00:00
|
|
|
memory = 450
|
|
|
|
memory_max = 700
|
2022-10-27 21:28:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|