job "autoscaler" { region = "us-central" datacenters = ["dc1"] group "autoscaler" { count = 1 network { port "http" {} } task "autoscaler" { driver = "docker" config { image = "docker.artifactory.rbx.com/hashicorp/nomad-autoscaler:0.3.7" command = "nomad-autoscaler" args = ["agent", "-config", "${NOMAD_TASK_DIR}/config.hcl", "-log-level=TRACE"] # Run in the docker network that docker-compose creates for us. network_mode = "persistence" } template { #language=hcl data = <