From b1892d6517abaf89d5deb624712b310ce3e1a5b9 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 22 Aug 2024 21:45:35 +0200 Subject: grafana & prometheus --- terraform/grafana/grafana.tf | 4 +++- terraform/grafana/main.tf | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'terraform/grafana') diff --git a/terraform/grafana/grafana.tf b/terraform/grafana/grafana.tf index 6d75da3..7cda977 100644 --- a/terraform/grafana/grafana.tf +++ b/terraform/grafana/grafana.tf @@ -12,12 +12,14 @@ resource "docker_container" "grafana" { privileged = false must_run = true + network_mode = "bridge" + networks_advanced { name = data.docker_network.traefik.name } networks_advanced { - name = data.docker_network.public.name + name = data.docker_network.private.name } dynamic "labels" { diff --git a/terraform/grafana/main.tf b/terraform/grafana/main.tf index fa225ab..cb9b920 100644 --- a/terraform/grafana/main.tf +++ b/terraform/grafana/main.tf @@ -45,3 +45,7 @@ data "docker_network" "traefik" { data "docker_network" "public" { name = "public" } + +data "docker_network" "private" { + name = "private" +} -- cgit v1.2.3