job "esports-minecraft" { datacenters = ["aperture"] type = "service" group "esports-mc" { count = 1 network { port "mc" { to = 25565 } port "rcon" { to = 25575 } } service { name = "esports-mc" port = "mc" } service { name = "esports-mc-rcon" port = "rcon" } task "esports-minecraft" { driver = "docker" config { image = "itzg/minecraft-server" ports = ["mc", "rcon"] volumes = [ "/storage/nomad/${NOMAD_TASK_NAME}:/data" ] } resources { cpu = 5000 # 5000 MHz memory = 20480 # 20 GB } template { data = <