forked from HashiCraft/Docker-Minecraft-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
minecraft-nomad.hcl
44 lines (43 loc) · 1.12 KB
/
minecraft-nomad.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
job "minecraft" {
datacenters = ["mydc"]
group "server" {
volume "world" {
type = "host"
source = "world-minecraft-vanilla"
read_only = false
}
volume "config" {
type = "host"
source = "config-minecraft-vanilla"
read_only = false
}
network {
port "minecraft" {
static = 25565
to = 25565
}
}
task "container" {
driver = "docker"
config {
image = "jrnijboer/minecraft-vanilla:1.16.5"
ports = ["minecraft"]
}
env {
JAVA_MEMORY = "1200m"
RCON_PASSWORD = "tfarcenim"
}
resources {
memory = 1500 # MB
}
volume_mount {
volume = "config"
destination = "/minecraft/config"
}
volume_mount {
volume = "world"
destination = "/minecraft/world"
}
}
}
}