Thingvellir as nomad server
This commit is contained in:
47
data/nomad/old/unbound.nomad
Normal file
47
data/nomad/old/unbound.nomad
Normal file
@@ -0,0 +1,47 @@
|
||||
job "unbound" {
|
||||
region = "global"
|
||||
datacenters = ["samfelag"]
|
||||
type = "service"
|
||||
|
||||
group "unbound" {
|
||||
count = 1
|
||||
|
||||
volume "unbound" {
|
||||
type = "host"
|
||||
read_only = false
|
||||
source = "dns-unbound"
|
||||
}
|
||||
|
||||
restart {
|
||||
attempts = 5
|
||||
delay = "15s"
|
||||
}
|
||||
|
||||
network {
|
||||
port "dns" {
|
||||
static = 5533
|
||||
}
|
||||
}
|
||||
|
||||
task "unbound" {
|
||||
driver = "docker"
|
||||
|
||||
volume_mount {
|
||||
volume = "unbound"
|
||||
destination = "/opt/unbound/etc/unbound/"
|
||||
read_only = false
|
||||
}
|
||||
|
||||
config {
|
||||
image = "mvance/unbound:latest"
|
||||
ports = ["dns"]
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 50
|
||||
memory = 64
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user