Store blocky config in local task dir
This commit is contained in:
parent
747d5ef0e7
commit
a748adbab0
@ -66,13 +66,8 @@ job "blocky" {
|
|||||||
|
|
||||||
config {
|
config {
|
||||||
image = "ghcr.io/0xerr0r/blocky"
|
image = "ghcr.io/0xerr0r/blocky"
|
||||||
|
args = ["-c", "${NOMAD_TASK_DIR}/config.yml"]
|
||||||
ports = ["dns", "api"]
|
ports = ["dns", "api"]
|
||||||
|
|
||||||
mount {
|
|
||||||
type = "bind"
|
|
||||||
target = "/app/config.yml"
|
|
||||||
source = "app/config.yml"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
@ -83,7 +78,7 @@ job "blocky" {
|
|||||||
|
|
||||||
template {
|
template {
|
||||||
data = var.config_data
|
data = var.config_data
|
||||||
destination = "app/config.yml"
|
destination = "${NOMAD_TASK_DIR}/config.yml"
|
||||||
splay = "1m"
|
splay = "1m"
|
||||||
|
|
||||||
wait {
|
wait {
|
||||||
|
Loading…
Reference in New Issue
Block a user