homelab/nomad-job/apps/rutorrent.nomad

76 lines
1.9 KiB
Plaintext
Raw Normal View History

2022-05-26 12:20:32 +00:00
job "torrent" {
datacenters = ["hetzner"]
2022-12-10 16:10:32 +00:00
priority = 80
2022-10-29 08:40:01 +00:00
type = "service"
2022-05-26 12:20:32 +00:00
meta {
forcedeploy = "0"
}
2022-10-29 08:40:01 +00:00
group "bittorent" {
2022-05-26 12:20:32 +00:00
network {
mode = "host"
port "http" {
2022-10-29 08:40:01 +00:00
to = 8080
2022-05-26 12:20:32 +00:00
host_network = "private"
}
port "torrent" {
2022-10-29 08:40:01 +00:00
static = 6881
2022-05-26 12:20:32 +00:00
host_network = "public"
}
2022-08-27 07:35:11 +00:00
port "ecoute" {
2022-10-29 08:40:01 +00:00
static = 50000
2022-08-27 07:35:11 +00:00
host_network = "public"
}
2022-05-26 12:20:32 +00:00
}
task "bittorent" {
2024-11-09 09:22:24 +00:00
driver = "docker"
2022-05-26 12:20:32 +00:00
service {
name = "bittorent"
port = "http"
address_mode= "host"
2022-05-26 12:20:32 +00:00
tags = [
2022-10-29 08:40:01 +00:00
"homer.enable=true",
"homer.name=torrent",
2023-11-05 18:08:17 +00:00
"homer.url=https://torrent.ducamps.eu",
2022-10-29 08:40:01 +00:00
"homer.service=Application",
2024-04-12 06:56:12 +00:00
"homer.logo=https://fleet.linuxserver.io/images/linuxserver_rutorrent.png",
2022-10-29 08:40:01 +00:00
"homer.target=_blank",
"traefik.enable=true",
2023-11-05 18:08:17 +00:00
"traefik.http.routers.${NOMAD_JOB_NAME}.rule=Host(`${NOMAD_JOB_NAME}.ducamps.eu`)",
"traefik.http.routers.${NOMAD_JOB_NAME}.tls.domains[0].sans=${NOMAD_JOB_NAME}.ducamps.eu",
2022-10-29 08:40:01 +00:00
"traefik.http.routers.${NOMAD_JOB_NAME}.tls.certresolver=myresolver",
2023-10-07 16:40:40 +00:00
"traefik.http.routers.${NOMAD_JOB_NAME}.entrypoints=web,websecure",
"traefik.http.routers.${NOMAD_JOB_NAME}.middlewares=authelia-basic",
2022-05-26 12:20:32 +00:00
]
}
config {
2024-11-09 09:22:24 +00:00
ulimit {
nofile = "8192:8192"
}
2024-03-17 17:58:24 +00:00
image = "docker.service.consul:5000/crazymax/rtorrent-rutorrent:edge"
2022-05-26 12:20:32 +00:00
ports = [
"http",
2022-08-27 07:35:11 +00:00
"torrent",
"ecoute"
2022-10-29 08:40:01 +00:00
]
2022-05-26 12:20:32 +00:00
volumes = [
2024-04-24 19:23:39 +00:00
"/opt/rutorrentConfig:/data",
2022-05-28 14:01:14 +00:00
"/mnt/hetzner/storagebox/file:/downloads"
2022-05-26 12:20:32 +00:00
]
}
env {
2024-08-03 12:46:47 +00:00
PUID = 100001
2024-02-24 16:14:21 +00:00
PGID = 10
2022-10-29 08:40:01 +00:00
UMASK = 002
2022-11-26 20:04:33 +00:00
WEBUI_PORT = "8080"
2022-05-26 12:20:32 +00:00
}
resources {
2022-08-27 07:35:11 +00:00
memory = 450
2022-05-26 12:20:32 +00:00
}
}
}
}