diff --git a/core/ddclient.nomad b/core/ddclient.nomad index 26a8ce9..c5ae3c1 100644 --- a/core/ddclient.nomad +++ b/core/ddclient.nomad @@ -6,6 +6,7 @@ job "ddclient" { task "ddclient" { driver = "docker" + config { image = "ghcr.io/linuxserver/ddclient:v3.10.0-ls104" diff --git a/services/main.tf b/services/main.tf index a7edad5..36ab929 100644 --- a/services/main.tf +++ b/services/main.tf @@ -145,3 +145,37 @@ module "photoprism_module" { }, ] } + +module "diun" { + source = "./service" + + name = "diun" + image = "crazymax/diun:4.24" + args = ["serve", "--log-level=debug"] + + env = { + DIUN_DB_PATH = "$${NOMAD_TASK_DIR}/diun.db" + DIUN_WATCH_SCHEDULE = "0 */6 * * *" + DIUN_PROVIDERS_NOMAD_WATCHBYDEFAULT = true + + # Nomad API + NOMAD_ADDR = "http://$${attr.unique.network.ip-address}:4646/" + DIUN_PROVIDERS_NOMAD = true + } + + use_vault = true + + templates = [ + { + data = <