diff options
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" +} |