homelab-nomad/core/loki.tf

25 lines
460 B
Terraform
Raw Normal View History

module "loki" {
source = "../services/service"
detach = false
name = "loki"
2024-01-23 20:06:25 +00:00
image = "grafana/loki:2.8.7"
args = ["--config.file=$${NOMAD_TASK_DIR}/loki-config.yml"]
service_port = 3100
ingress = true
use_wesher = var.use_wesher
2024-01-23 20:08:47 +00:00
service_check = {
path = "/ready"
}
sticky_disk = true
templates = [
{
data = file("${path.module}/loki-config.yml")
dest = "loki-config.yml"
mount = false
}
]
}