From d83591cfd49bce08978f32b1145dc437dcd3bace Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Wed, 27 Sep 2023 21:34:14 -0700 Subject: [PATCH] Make diun disk sticky --- services/diun.tf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/diun.tf b/services/diun.tf index 0335b14..250c509 100644 --- a/services/diun.tf +++ b/services/diun.tf @@ -5,8 +5,10 @@ module "diun" { image = "crazymax/diun:4.26" args = ["serve", "--log-level=debug"] + sticky_disk = true + env = { - DIUN_DB_PATH = "$${NOMAD_TASK_DIR}/diun.db" + DIUN_DB_PATH = "$${NOMAD_ALLOC_DIR}/data/diun.db" DIUN_WATCH_SCHEDULE = "0 */6 * * *" DIUN_PROVIDERS_NOMAD_WATCHBYDEFAULT = true DIUN_DEFAULTS_WATCHREPO = true