aboutsummaryrefslogtreecommitdiff
path: root/terraform/conflatorio-docker
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2023-10-23 15:41:46 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2023-10-23 15:41:46 +0200
commitebe35b94b059343849e0c428ee69378190f25030 (patch)
tree61e25b119ff9c531d42b2c012d2d0d7409848506 /terraform/conflatorio-docker
parent3561e7d974630911ae3e26108ff9f2e03ec8599b (diff)
downloadinfra-ebe35b94b059343849e0c428ee69378190f25030.tar.gz
infra-ebe35b94b059343849e0c428ee69378190f25030.tar.bz2
infra-ebe35b94b059343849e0c428ee69378190f25030.tar.xz
infra-ebe35b94b059343849e0c428ee69378190f25030.zip
grafana/traefik
Diffstat (limited to 'terraform/conflatorio-docker')
-rw-r--r--terraform/conflatorio-docker/network.tf9
-rw-r--r--terraform/conflatorio-docker/traefik.tf17
2 files changed, 11 insertions, 15 deletions
diff --git a/terraform/conflatorio-docker/network.tf b/terraform/conflatorio-docker/network.tf
new file mode 100644
index 0000000..32e1bfb
--- /dev/null
+++ b/terraform/conflatorio-docker/network.tf
@@ -0,0 +1,9 @@
+resource "docker_network" "public" {
+ name = "public"
+
+ ipv6 = true
+
+ ipam_config {
+ subnet = "fdf3:aad9:a885:77dd:bbbb::/120"
+ }
+}
diff --git a/terraform/conflatorio-docker/traefik.tf b/terraform/conflatorio-docker/traefik.tf
index ebc1ea0..8613394 100644
--- a/terraform/conflatorio-docker/traefik.tf
+++ b/terraform/conflatorio-docker/traefik.tf
@@ -1,10 +1,5 @@
resource "docker_network" "traefik" {
name = "traefik"
- ipv6 = true
-
- ipam_config {
- subnet = "fdf3:aad9:a885:77dd:aaaa::/120"
- }
}
resource "docker_image" "traefik" {
@@ -21,16 +16,8 @@ resource "docker_container" "traefik" {
name = docker_network.traefik.name
}
-# ports {
-# internal = 80
-# external = 80
-# ip = "192.168.10.147"
-# }
-#
-# ports {
-# internal = 443
-# external = 443
-# ip = "192.168.10.147"
+# networks_advanced {
+# name = docker_network.public.name
# }
ports {