job "bbbot" { datacenters = ["atlas"] group "primary" { network { port "http" { static = "7487" } } service { name = "${NOMAD_JOB_NAME}-http" tags = ["http","internal","management","private"] port = "http" } volume "app" { type = "csi" source = "bbbot" read_only = false attachment_mode = "file-system" access_mode = "single-node-writer" per_alloc = false } task "prepare-volumes" { driver = "docker" config { image = "busybox:latest" command = "sh" args = ["-c", "chown 1000:1000 /data"] } volume_mount { volume = "app" destination = "/data" read_only = false } lifecycle { hook = "prestart" sidecar = false } } task "server" { driver = "docker" config { image = "git.cronocide.net/cronocide/bluebubbles-bot:latest" image_pull_timeout = "15m" ports = ["http"] } volume_mount { volume = "app" destination = "/data" } vault { policies = ["access-cronocide.net"] } template { data = <