All checks were successful
Build and Deploy Frigate / build-push-deploy (push) Successful in 37s
72 lines
1.4 KiB
HCL
72 lines
1.4 KiB
HCL
job "frigate" {
|
|
datacenters = ["dc1"]
|
|
type = "service"
|
|
|
|
constraint {
|
|
attribute = "${attr.unique.hostname}"
|
|
value = "int"
|
|
}
|
|
|
|
group "frigate" {
|
|
count = 1
|
|
|
|
update {
|
|
canary = 1
|
|
auto_promote = true
|
|
auto_revert = true
|
|
}
|
|
|
|
ephemeral_disk {
|
|
sticky = true
|
|
migrate = true
|
|
size = 20480
|
|
}
|
|
|
|
network {
|
|
port "http" { to = 5000 }
|
|
}
|
|
|
|
task "frigate" {
|
|
driver = "docker"
|
|
|
|
config {
|
|
image = "registry.i80.dk/gitea/frigate:latest"
|
|
force_pull = true
|
|
privileged = true
|
|
shm_size = 268435456
|
|
volumes = [
|
|
"${NOMAD_ALLOC_DIR}/frigate-config:/config",
|
|
"${NOMAD_ALLOC_DIR}/frigate-media:/media/frigate",
|
|
"/etc/localtime:/etc/localtime:ro",
|
|
]
|
|
ports = ["http"]
|
|
}
|
|
|
|
env {
|
|
FRIGATE_RTSP_PASSWORD = ""
|
|
}
|
|
|
|
service {
|
|
name = "frigate"
|
|
port = "http"
|
|
tags = [
|
|
"traefik.enable=true",
|
|
"traefik.http.routers.frigate.rule=Host(`cams.i80.dk`)",
|
|
"traefik.http.routers.frigate.tls=true",
|
|
]
|
|
check {
|
|
type = "http"
|
|
path = "/api/version"
|
|
interval = "10s"
|
|
timeout = "5s"
|
|
}
|
|
}
|
|
|
|
resources {
|
|
cpu = 2000
|
|
memory = 4096
|
|
}
|
|
}
|
|
}
|
|
}
|