Nomad changes
All checks were successful
Build and Deploy Frigate / build-push-deploy (push) Successful in 37s

This commit is contained in:
Henrik Jess Nielsen
2026-06-10 16:02:21 +02:00
parent 592c05b2b4
commit 0e0c479b1d

View File

@@ -16,26 +16,16 @@ job "frigate" {
auto_revert = true auto_revert = true
} }
ephemeral_disk {
sticky = true
migrate = true
size = 20480
}
network { network {
port "http" { to = 5000 } port "http" { to = 5000 }
} }
volume "frigate-config" {
type = "host"
source = "frigate-config"
read_only = false
access_mode = "single-node-writer"
attachment_mode = "file-system"
}
volume "frigate-media" {
type = "host"
source = "frigate-media"
read_only = false
access_mode = "single-node-writer"
attachment_mode = "file-system"
}
task "frigate" { task "frigate" {
driver = "docker" driver = "docker"
@@ -44,22 +34,14 @@ job "frigate" {
force_pull = true force_pull = true
privileged = true privileged = true
shm_size = 268435456 shm_size = 268435456
volumes = ["/etc/localtime:/etc/localtime:ro"] volumes = [
"${NOMAD_ALLOC_DIR}/frigate-config:/config",
"${NOMAD_ALLOC_DIR}/frigate-media:/media/frigate",
"/etc/localtime:/etc/localtime:ro",
]
ports = ["http"] ports = ["http"]
} }
volume_mount {
volume = "frigate-config"
destination = "/config"
read_only = false
}
volume_mount {
volume = "frigate-media"
destination = "/media/frigate"
read_only = false
}
env { env {
FRIGATE_RTSP_PASSWORD = "" FRIGATE_RTSP_PASSWORD = ""
} }