add plex role
This commit is contained in:
parent
1e1acc8b95
commit
08be943b2c
50
nomad-job/decom/plex.nomad
Normal file
50
nomad-job/decom/plex.nomad
Normal file
@ -0,0 +1,50 @@
|
||||
|
||||
job "plex" {
|
||||
datacenters = ["homelab"]
|
||||
type = "service"
|
||||
meta {
|
||||
forcedeploy = "0"
|
||||
}
|
||||
constraint {
|
||||
attribute = "${attr.cpu.arch}"
|
||||
value = "amd64"
|
||||
}
|
||||
|
||||
group "plex"{
|
||||
network {
|
||||
mode = "host"
|
||||
port "http" {
|
||||
static = 32400
|
||||
}
|
||||
}
|
||||
|
||||
task "plex" {
|
||||
driver = "docker"
|
||||
service {
|
||||
name = "plex"
|
||||
port = "http"
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.${NOMAD_JOB_NAME}.rule=Host(`${NOMAD_JOB_NAME}.ducamps.win`)",
|
||||
"traefik.http.routers.${NOMAD_JOB_NAME}.tls.domains[0].sans=${NOMAD_JOB_NAME}.ducamps.win",
|
||||
"traefik.http.routers.${NOMAD_JOB_NAME}.tls.certresolver=myresolver",
|
||||
|
||||
|
||||
]
|
||||
}
|
||||
config {
|
||||
image = "plexinc/pms-docker"
|
||||
ports = ["http"]
|
||||
volumes = [
|
||||
"/mnt/diskstation/nomad/plex/config:/config",
|
||||
"/mnt/diskstation/media/:/data"
|
||||
]
|
||||
|
||||
}
|
||||
resources {
|
||||
memory = 300
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user