job "minecraft-magma" { datacenters = ["aperture"] type = "service" group "fabric-server" { count = 1 network { port "mc" { to = 25565 } port "rcon" { to = 25575 } } service { name = "magma-mc" port = "mc" } service { name = "magma-mc-rcon" port = "rcon" } service { name = "magma-mc-voice" port = "voice" tags = [ "traefik.enable=true", "traefik.tcp.routers.magma-mc-voice.rule=HostSNI(`magma-mc.rb.dcu.ie`)", "traefik.tcp.routers.magma-mc-voice.tls.passthrough=true", "traefik.udp.routers.magma-mc-voice.entrypoints=voice-udp", ] } task "minecraft-magma" { driver = "docker" config { image = "itzg/minecraft-server:java17-alpine" ports = ["mc", "rcon", "voice"] volumes = [ "/storage/nomad/${NOMAD_TASK_NAME}:/data" ] } resources { cpu = 3000 # 3GHz memory = 10240 # 10GB } template { data = <