diff --git a/jobs/games/minecraft.hcl b/jobs/games/minecraft.hcl index 92417b3..e715f69 100644 --- a/jobs/games/minecraft.hcl +++ b/jobs/games/minecraft.hcl @@ -228,5 +228,52 @@ job "minecraft" { } } } + + group "cjaran-mc" { + count = 1 + + network { + port "mc-cjaran-port" { + static = 25571 + to = 25565 + } + + port "mc-cjaran-rcon" { + to = 25575 + } + } + + service { + name = "cjaran-mc" + } + + task "minecraft-cjaran" { + driver = "docker" + + config { + image = "itzg/minecraft-server" + ports = ["mc-cjaran-port","mc-cjaran-rcon"] + + volumes = [ + "/storage/nomad/${NOMAD_TASK_NAME}:/data" + ] + } + + resources { + cpu = 3000 # 3000 MHz + memory = 4096 # 4GB + } + + env { + EULA = "TRUE" + TYPE = "PAPER" + ICON = "https://i.imgur.com/HC9cRNf.png" + VERSION = "1.20.4" + USE_AIKAR_FLAGS=true + OPS = "BloThen" + MAX_PLAYERS = "10" + } + } + } } diff --git a/jobs/ingress/gate-proxy.hcl b/jobs/ingress/gate-proxy.hcl index fd3f857..55a2aa8 100644 --- a/jobs/ingress/gate-proxy.hcl +++ b/jobs/ingress/gate-proxy.hcl @@ -48,18 +48,20 @@ config: lite: enabled: true routes: + - host: regaus.rb.dcu.ie + backend: regaus-mc.service.consul:25566 - host: mc.rb.dcu.ie backend: vanilla-mc.service.consul:25567 - host: olim909.rb.dcu.ie backend: olim909-mc.service.consul:25568 - host: olim909-geyser.rb.dcu.ie backend: olim909-mc.service.consul:19132 - - host: fugatives.rb.dcu.ie - backend: fugatives-mc.service.consul:25570 - - host: regaus.rb.dcu.ie - backend: regaus-mc.service.consul:25566 - host: games.rb.dcu.ie backend: games-mc.service.consul:25569 + - host: fugatives.rb.dcu.ie + backend: fugatives-mc.service.consul:25570 + - host: cjaran-mc.rb.dcu.ie + backend: cjaran-mc.service.consul:25571 EOH destination = "local/file.conf" }