Files
frigate/frigate.nomad
Henrik Jess Nielsen 97ab9c6efb
All checks were successful
Build and Deploy Frigate / build-push-deploy (push) Successful in 10m51s
feat: gate cams.i80.dk behind SSO (auth=sso)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-10-10 12:39:41 +02:00

73 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",
"auth=sso",
]
check {
type = "http"
path = "/api/version"
interval = "10s"
timeout = "5s"
}
}
resources {
cpu = 2000
memory = 4096
}
}
}
}