update minecraft jobs (#41)
This commit is contained in:
parent
d88b5726be
commit
69103b5d2b
2 changed files with 53 additions and 4 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue