This commit is contained in:
kento2 2026-08-19 02:15:39 +02:00
parent c4bf3b8bee
commit 8f29a4f56d
10 changed files with 819 additions and 15 deletions

View file

@ -2,13 +2,14 @@ job "velocity" {
type = "service"
group "velocity" {
network {
mode = "bridge"
port "ingress" {
static = 25565
}
dns {
servers = ["127.0.0.1"]
servers = ["172.17.0.1"]
}
}
@ -24,12 +25,48 @@ job "velocity" {
}
}
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"
config {
image = "scrow/velocity:local"
image = "git.lab0x13.site/scrow/velocity:0.1"
ports = ["ingress"]
volumes = ["../alloc/data:/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