nomad template
This commit is contained in:
+45
@@ -0,0 +1,45 @@
|
||||
job "fence" {
|
||||
datacenters = ["pawott"]
|
||||
type = "service"
|
||||
|
||||
group "fence" {
|
||||
count = 3
|
||||
|
||||
network {
|
||||
port "minecraft" {
|
||||
to = 25565
|
||||
}
|
||||
}
|
||||
|
||||
service {
|
||||
name = "fence"
|
||||
port = "minecraft"
|
||||
|
||||
check {
|
||||
port = "minecraft"
|
||||
type = "tcp"
|
||||
interval = "10s"
|
||||
timeout = "2s"
|
||||
}
|
||||
|
||||
tags = ["minecraft"]
|
||||
}
|
||||
|
||||
task "task" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "registry.pawott.de/fence:${DRONE_TAG}"
|
||||
ports = ["minecraft"]
|
||||
}
|
||||
environment {
|
||||
CONSUL_ADDR = "consul1.pawott.de:8500"
|
||||
REDIS_ADDR = "haproxy.pawott.de:6380"
|
||||
}
|
||||
|
||||
resources {
|
||||
memory = 256
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user