From e768b1675922e746f09828920b05d836a1cd365b Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 23 Dec 2024 17:35:29 +0100 Subject: otelcol --- terraform/hash-loki/loki.tf | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'terraform/hash-loki/loki.tf') diff --git a/terraform/hash-loki/loki.tf b/terraform/hash-loki/loki.tf index b7bb60b..1e09037 100644 --- a/terraform/hash-loki/loki.tf +++ b/terraform/hash-loki/loki.tf @@ -1,5 +1,5 @@ resource "docker_image" "loki" { - name = "grafana/loki:3.2.1" + name = "grafana/loki:3.3.0" } resource "docker_volume" "loki" { @@ -12,6 +12,10 @@ resource "docker_container" "loki" { privileged = false must_run = true + command = [ + "-config.file=${local.container_config_dir}/loki-config.yaml" + ] + network_mode = "bridge" networks_advanced { @@ -39,6 +43,13 @@ resource "docker_container" "loki" { env = [ ] + mounts { + source = local.host_config_dir + target = local.container_config_dir + type = "bind" + read_only = false + } + volumes { volume_name = docker_volume.loki.name container_path = "/loki" -- cgit v1.2.3