From 8f69906aa24b0836c91777afb429bfe951626a30 Mon Sep 17 00:00:00 2001 From: Henrik Jess Nielsen Date: Mon, 11 May 2026 21:49:46 +0200 Subject: [PATCH] Use proper DHV syntax for host volumes Volumes are now registered as dynamic host volumes via nomad volume register, not as static host_volume blocks in nomad.hcl. Use access_mode and attachment_mode in volume stanzas to match DHV API. --- frigate.nomad | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/frigate.nomad b/frigate.nomad index e6cfc2c..b17d3a6 100644 --- a/frigate.nomad +++ b/frigate.nomad @@ -21,15 +21,19 @@ job "frigate" { } volume "frigate-config" { - type = "host" - source = "frigate-config" - read_only = false + 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 + type = "host" + source = "frigate-media" + read_only = false + access_mode = "single-node-writer" + attachment_mode = "file-system" } task "frigate" {