.
This commit is contained in:
parent
c4bf3b8bee
commit
8f29a4f56d
10 changed files with 819 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue