aboutsummaryrefslogtreecommitdiff
path: root/terraform/hash-loki/loki.tf
diff options
context:
space:
mode:
Diffstat (limited to 'terraform/hash-loki/loki.tf')
-rw-r--r--terraform/hash-loki/loki.tf13
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"