This commit is contained in:
kento2 2026-08-20 17:16:00 +02:00
parent b7623bab85
commit d6e4cae9c6
60 changed files with 486 additions and 93 deletions

View file

@ -1,10 +1,9 @@
job "velocity" {
type = "service"
datacenters = ["dc1"]
group "velocity" {
network {
mode = "bridge"
port "ingress" {
static = 25565
}
@ -13,52 +12,19 @@ job "velocity" {
}
}
service {
name = "velocity"
port = "ingress"
address_mode = "host"
check {
type = "tcp"
interval = "5s"
timeout = "1s"
}
}
ephemeral_disk {
size = 5000 # 5 gb
}
task "download-plugins" {
driver = "docker"
lifecycle {
hook = "prestart"
sidecar = false
}
config {
image = "busybox"
command = "sh"
volumes = ["../alloc/data:/mnt"]
args = [
"-xec",
<<-EOF
mkdir -p /mnt/plugins
wget -P /mnt/plugins \
https://git.lab0x13.site/api/packages/scrow/generic/core-velocity/UNVERSIONED/CoreVelocity.jar
EOF
]
}
}
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.1"
image = "git.lab0x13.site/scrow/velocity:0.3"
force_pull = true
ports = ["ingress"]
volumes = ["../alloc/data:/mnt"]
volumes = ["local:/mnt"]
}
env {