job "minecraft-vanilla" { datacenters = ["aperture"] type = "service" group "vanilla-mc" { count = 1 network { port "mc" { to = 25565 } port "rcon" { to = 25575 } port "bluemap" { to = 8100 } } service { name = "vanilla-mc" port = "mc" } service { name = "vanilla-mc-rcon" port = "rcon" } service { name = "vanilla-mc-bluemap" port = "bluemap" tags = [ "traefik.enable=true", "traefik.http.routers.vanilla-mc-bluemap.rule=Host(`vanilla-mc.rb.dcu.ie`)", "traefik.http.routers.vanilla-mc-bluemap.entrypoints=web,websecure", "traefik.http.routers.vanilla-mc-bluemap.tls.certresolver=lets-encrypt", ] } task "minecraft-vanilla" { driver = "docker" config { image = "itzg/minecraft-server" ports = ["mc", "rcon", "bluemap"] volumes = [ "/storage/nomad/${NOMAD_TASK_NAME}:/data" ] } resources { cpu = 5000 # 5000 MHz memory = 10240 # 10GB } template { data = <