diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2024-08-22 21:45:35 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2024-08-22 21:45:35 +0200 |
commit | b1892d6517abaf89d5deb624712b310ce3e1a5b9 (patch) | |
tree | a89b2ff710dff84e0b89326ee645b25529f74fb7 /terraform/grafana | |
parent | 4c53a89d4102c9cbb512ee3cb4afe90e24605239 (diff) | |
download | infra-b1892d6517abaf89d5deb624712b310ce3e1a5b9.tar.gz infra-b1892d6517abaf89d5deb624712b310ce3e1a5b9.tar.bz2 infra-b1892d6517abaf89d5deb624712b310ce3e1a5b9.tar.xz infra-b1892d6517abaf89d5deb624712b310ce3e1a5b9.zip |
grafana & prometheus
Diffstat (limited to 'terraform/grafana')
-rw-r--r-- | terraform/grafana/grafana.tf | 4 | ||||
-rw-r--r-- | terraform/grafana/main.tf | 4 |
2 files changed, 7 insertions, 1 deletions
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" +} |