nomad/jobs/games/minecraft/regaus.hcl

50 lines
851 B
HCL

job "minecraft-regaus" {
datacenters = ["aperture"]
type = "service"
group "regaus-mc" {
count = 1
network {
port "mc" {
to = 25565
}
port "rcon" {
to = 25575
}
}
service {
name = "regaus-mc"
port = "mc"
}
task "minecraft-regaus" {
driver = "docker"
config {
image = "itzg/minecraft-server"
ports = ["mc", "rcon"]
volumes = [
"/storage/nomad/${NOMAD_TASK_NAME}:/data"
]
}
resources {
cpu = 3000 # 3000 MHz
memory = 4096 # 4GB
}
env {
EULA = "TRUE"
TYPE = "PAPER"
VERSION = "1.20.4"
USE_AIKAR_FLAGS = true
OPS = "regaus"
MAX_PLAYERS = "5"
}
}
}
}