39 lines
608 B
HCL
39 lines
608 B
HCL
job "velocity" {
|
|
type = "service"
|
|
|
|
group "velocity" {
|
|
network {
|
|
mode = "bridge"
|
|
port "ingress" {
|
|
static = 25565
|
|
}
|
|
dns {
|
|
servers = ["127.0.0.1"]
|
|
}
|
|
}
|
|
|
|
service {
|
|
name = "velocity"
|
|
port = "ingress"
|
|
address_mode = "host"
|
|
|
|
check {
|
|
type = "tcp"
|
|
interval = "5s"
|
|
timeout = "1s"
|
|
}
|
|
}
|
|
|
|
task "velocity" {
|
|
driver = "docker"
|
|
config {
|
|
image = "scrow/velocity:local"
|
|
ports = ["ingress"]
|
|
}
|
|
resources {
|
|
cpu = 1000
|
|
memory = 500
|
|
}
|
|
}
|
|
}
|
|
}
|