diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2024-12-23 17:35:29 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2024-12-23 17:35:29 +0100 |
commit | e768b1675922e746f09828920b05d836a1cd365b (patch) | |
tree | 505560f6c972b802e94a4bff1ec2e3e641a37fda /terraform/hash-loki/loki.tf | |
parent | 979ec08d3d35118f106559dc59c1961cd3534ba7 (diff) | |
download | infra-e768b1675922e746f09828920b05d836a1cd365b.tar.gz infra-e768b1675922e746f09828920b05d836a1cd365b.tar.bz2 infra-e768b1675922e746f09828920b05d836a1cd365b.tar.xz infra-e768b1675922e746f09828920b05d836a1cd365b.zip |
Diffstat (limited to 'terraform/hash-loki/loki.tf')
-rw-r--r-- | terraform/hash-loki/loki.tf | 13 |
1 files changed, 12 insertions, 1 deletions
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" |