games/minecraft: add plugins, bluemap config (#64)
This commit is contained in:
parent
29d57b8081
commit
c993ceb6ed
1 changed files with 22 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue