-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathminecraft.nomad
48 lines (42 loc) · 854 Bytes
/
minecraft.nomad
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
44
45
46
47
48
job "pr1sm-minecraft" {
datacenters = ["dc1"]
type = "service"
group "mc" {
count = 1
network {
port "mc-vanilla-port" {
to = 25565
static = 25565
}
port "mc-vanilla-rcon" {
to = 25575
static = 25575
}
mode = "bridge"
}
volume "minecraft-data" {
type = "host"
read_only = false
source = "minecraft-data"
}
task "minecraft-server" {
driver = "docker"
volume_mount {
volume = "minecraft-data"
destination = "/data"
read_only = false
}
config {
image = "itzg/minecraft-server"
ports = ["mc-vanilla-port","mc-vanilla-rcon"]
}
resources {
cpu = 3000 # 500 MHz
memory = 2048 # 256MB
}
env {
EULA = "TRUE"
}
}
}
}