From c993ceb6ed9516b7f1558b58edf4b148cebe4f71 Mon Sep 17 00:00:00 2001 From: wizzdom Date: Tue, 15 Oct 2024 13:35:08 +0100 Subject: [PATCH] games/minecraft: add plugins, bluemap config (#64) --- jobs/games/minecraft/vanilla.hcl | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/jobs/games/minecraft/vanilla.hcl b/jobs/games/minecraft/vanilla.hcl index 6b2992f..acb7278 100644 --- a/jobs/games/minecraft/vanilla.hcl +++ b/jobs/games/minecraft/vanilla.hcl @@ -12,6 +12,9 @@ job "minecraft-vanilla" { port "rcon" { to = 25575 } + port "bluemap" { + to = 8100 + } } service { @@ -24,19 +27,30 @@ job "minecraft-vanilla" { 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"] + ports = ["mc", "rcon", "bluemap"] volumes = [ "/storage/nomad/${NOMAD_TASK_NAME}:/data" ] } resources { - cpu = 3000 # 3000 MHz - memory = 8192 # 8GB + cpu = 5000 # 5000 MHz + memory = 10240 # 10GB } template { @@ -46,10 +60,15 @@ TYPE = "PAPER" VERSION = "1.21.1" ICON = "https://docs.redbrick.dcu.ie/assets/logo.png" USE_AIKAR_FLAGS = true +MAX_MEMORY = 8G MOTD = "LONG LIVE THE REDBRICK" MAX_PLAYERS = "20" +VIEW_DISTANCE = "20" ENABLE_RCON = true RCON_PASSWORD = {{ key "games/mc/vanilla-mc/rcon/password" }} +# Auto-download plugins +SPIGET_RESOURCES=83581,62325,118271,28140,102931 # RHLeafDecay, GSit, GravesX, Luckperms, NoChatReport +MODRINTH_PROJECTS=datapack:no-enderman-grief,thizzyz-tree-feller,imageframe,bluemap EOF destination = "local/.env" env = true