perf: add memory max to jellyfin
This commit is contained in:
parent
2c1f3629c5
commit
b44c620f95
@ -9,45 +9,45 @@ job "jellyfin" {
|
|||||||
attribute = "${attr.cpu.arch}"
|
attribute = "${attr.cpu.arch}"
|
||||||
value = "amd64"
|
value = "amd64"
|
||||||
}
|
}
|
||||||
group jellyfin-vue{
|
group jellyfin-vue {
|
||||||
network {
|
network {
|
||||||
mode = "host"
|
mode = "host"
|
||||||
port "http" {
|
port "http" {
|
||||||
to = 80
|
to = 80
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
task "jellyfin-vue"{
|
task "jellyfin-vue" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
service {
|
service {
|
||||||
name = "jellyfin-vue"
|
name = "jellyfin-vue"
|
||||||
port = "http"
|
port = "http"
|
||||||
tags = [
|
tags = [
|
||||||
"homer.enable=true",
|
"homer.enable=true",
|
||||||
"homer.name=${NOMAD_TASK_NAME}",
|
"homer.name=${NOMAD_TASK_NAME}",
|
||||||
"homer.service=Application",
|
"homer.service=Application",
|
||||||
"homer.target=_blank",
|
"homer.target=_blank",
|
||||||
"homer.logo=https://${NOMAD_TASK_NAME}.ducamps.win/icon.png",
|
"homer.logo=https://${NOMAD_TASK_NAME}.ducamps.win/icon.png",
|
||||||
"homer.url=https://${NOMAD_TASK_NAME}.ducamps.win",
|
"homer.url=https://${NOMAD_TASK_NAME}.ducamps.win",
|
||||||
"traefik.enable=true",
|
"traefik.enable=true",
|
||||||
"traefik.http.routers.${NOMAD_TASK_NAME}.rule=Host(`${NOMAD_TASK_NAME}.ducamps.win`)",
|
"traefik.http.routers.${NOMAD_TASK_NAME}.rule=Host(`${NOMAD_TASK_NAME}.ducamps.win`)",
|
||||||
"traefik.http.routers.${NOMAD_TASK_NAME}.tls.domains[0].sans=${NOMAD_TASK_NAME}.ducamps.win",
|
"traefik.http.routers.${NOMAD_TASK_NAME}.tls.domains[0].sans=${NOMAD_TASK_NAME}.ducamps.win",
|
||||||
"traefik.http.routers.${NOMAD_TASK_NAME}.tls.certresolver=myresolver",
|
"traefik.http.routers.${NOMAD_TASK_NAME}.tls.certresolver=myresolver",
|
||||||
]
|
]
|
||||||
|
|
||||||
}
|
}
|
||||||
config {
|
config {
|
||||||
image = "ghcr.io/jellyfin/jellyfin-vue:unstable"
|
image = "ghcr.io/jellyfin/jellyfin-vue:unstable"
|
||||||
ports = ["http"]
|
ports = ["http"]
|
||||||
}
|
}
|
||||||
env {
|
env {
|
||||||
DEFAULT_SERVERS = "${NOMAD_TASK_NAME}.ducamps.win"
|
DEFAULT_SERVERS = "${NOMAD_TASK_NAME}.ducamps.win"
|
||||||
}
|
}
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
|
|
||||||
memory = 50
|
memory = 50
|
||||||
cpu = 100
|
cpu = 100
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -101,8 +101,9 @@ job "jellyfin" {
|
|||||||
|
|
||||||
}
|
}
|
||||||
resources {
|
resources {
|
||||||
memory = 2000
|
memory = 2000
|
||||||
cpu = 3000
|
memory_max = 4000
|
||||||
|
cpu = 3000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user