itamae/cookbooks/nomad/files/etc/nomad.d/options.hcl

24 lines
419 B
HCL
Raw Permalink Normal View History

2024-04-06 07:44:55 +00:00
plugin "docker" {
config {
# extra Docker labels to be set by Nomad on each Docker container with the appropriate value
extra_labels = ["job_name", "task_group_name", "task_name", "namespace", "node_name"]
volumes {
enabled = true
}
allow_privileged = true
}
}
client {
host_volume "docker-sock" {
path = "/var/run/docker.sock"
}
host_volume "tmp" {
path = "/tmp"
}
}