aboutsummaryrefslogtreecommitdiff
path: root/terraform/conflatorio-docker/network.tf
diff options
context:
space:
mode:
Diffstat (limited to 'terraform/conflatorio-docker/network.tf')
-rw-r--r--terraform/conflatorio-docker/network.tf16
1 files changed, 16 insertions, 0 deletions
diff --git a/terraform/conflatorio-docker/network.tf b/terraform/conflatorio-docker/network.tf
index b548fef..8a839f5 100644
--- a/terraform/conflatorio-docker/network.tf
+++ b/terraform/conflatorio-docker/network.tf
@@ -6,4 +6,20 @@ resource "docker_network" "public" {
ipam_config {
subnet = "${local.network_addr}/${local.network_range}"
}
+
+ ipam_config {
+ gateway = "172.22.0.1"
+ subnet = "172.22.0.0/16"
+ }
+}
+
+# Internal shared network
+resource "docker_network" "private" {
+ name = "private"
+
+ ipv6 = true
+
+ ipam_config {
+ subnet = "${local.private_network_addr}/${local.private_network_range}"
+ }
}