Added D53 and Diplonat
This commit is contained in:
parent
b99659f23e
commit
9ad682ae87
6 changed files with 119 additions and 2 deletions
52
apps/core/diplonat.hcl
Normal file
52
apps/core/diplonat.hcl
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
job "diplonat" {
|
||||
datacenters = ["zuma-house", "mayel-house", "gribse-house"]
|
||||
type = "system"
|
||||
priority = 90
|
||||
|
||||
update {
|
||||
max_parallel = 2
|
||||
stagger = "1m"
|
||||
}
|
||||
|
||||
group "diplonat" {
|
||||
task "diplonat" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "git.shenanigans.cc/zuma/diplonat:filouterie"
|
||||
network_mode = "host"
|
||||
readonly_rootfs = true
|
||||
privileged = true
|
||||
}
|
||||
|
||||
restart {
|
||||
interval = "5m"
|
||||
attempts = 10
|
||||
delay = "15s"
|
||||
mode = "delay"
|
||||
}
|
||||
|
||||
template {
|
||||
data = <<EOH
|
||||
DIPLONAT_REFRESH_TIME=60
|
||||
DIPLONAT_EXPIRATION_TIME=300
|
||||
DIPLONAT_DISABLE_IGD=true
|
||||
DIPLONAT_STUN_SERVER=stun.l.google.com:19302
|
||||
DIPLONAT_CONSUL_NODE_NAME={{ env "attr.unique.hostname" }}
|
||||
DIPLONAT_CONSUL_URL=http://consul.service.filouterie.consul:8500
|
||||
DIPLONAT_CONSUL_TLS_SKIP_VERIFY=true
|
||||
RUST_LOG=debug
|
||||
RUST_BACKTRACE=1
|
||||
EOH
|
||||
destination = "secrets/env"
|
||||
env = true
|
||||
}
|
||||
|
||||
resources {
|
||||
memory = 100
|
||||
memory_max = 200
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue