infra/jobs/velocity.nomad.hcl
2026-08-20 17:16:00 +02:00

42 lines
869 B
HCL

job "velocity" {
type = "service"
datacenters = ["dc1"]
group "velocity" {
network {
port "ingress" {
static = 25565
}
dns {
servers = ["172.17.0.1"]
}
}
task "velocity" {
driver = "docker"
artifact {
source = "https://git.lab0x13.site/api/packages/scrow/generic/core-velocity/UNVERSIONED/CoreVelocity.jar"
destination = "local/plugins"
}
config {
image = "git.lab0x13.site/scrow/velocity:0.3"
force_pull = true
ports = ["ingress"]
volumes = ["local:/mnt"]
}
env {
HOST_POSTGRES = "jdbc:postgresql://postgres.service.consul/scrow"
HOST_NATS = "nats://nats.service.consul"
HOST_CONSUL = "http://172.17.0.1:8500"
}
resources {
cpu = 1000
memory = 500
}
}
}
}