job "instasync" { datacenters = ["alo"] type = "batch" periodic { cron = "*/5 * * * *" prohibit_overlap = true } group "cron" { volume "code" { type = "host" read_only = true source = "code" } volume "nix-store" { type = "host" read_only = true source = "nix-store" } task "sync" { driver = "exec" config { command = "/nix/store/knc67zp8bgg3a3p10jmkzv7br0lmg9if-nodejs-20.9.0/bin/node" args = ["/code/instasync/sync.js"] } volume_mount { volume = "code" destination = "/code" } volume_mount { volume = "nix-store" destination = "/nix/store" } resources { memory = 100 } } } }