aboutsummaryrefslogtreecommitdiff
path: root/terraform/lhn2pi-zigbee2mqtt
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2025-01-01 18:56:29 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2025-01-01 18:56:29 +0100
commit485148048209ae47c1dbf0f4df6f9586335561c4 (patch)
tree42c7db20a77b2bd954eeb8e70abe26f3b66b03dd /terraform/lhn2pi-zigbee2mqtt
parentc42ae9d8b086ae3f2036ad743a324e682e5f4d08 (diff)
downloadinfra-485148048209ae47c1dbf0f4df6f9586335561c4.tar.gz
infra-485148048209ae47c1dbf0f4df6f9586335561c4.tar.bz2
infra-485148048209ae47c1dbf0f4df6f9586335561c4.tar.xz
infra-485148048209ae47c1dbf0f4df6f9586335561c4.zip
zigbee2mqttHEADmaster
Diffstat (limited to 'terraform/lhn2pi-zigbee2mqtt')
-rw-r--r--terraform/lhn2pi-zigbee2mqtt/main.tf1
-rw-r--r--terraform/lhn2pi-zigbee2mqtt/zigbee2mqtt.tf3
2 files changed, 4 insertions, 0 deletions
diff --git a/terraform/lhn2pi-zigbee2mqtt/main.tf b/terraform/lhn2pi-zigbee2mqtt/main.tf
index 009ac7d..4182db8 100644
--- a/terraform/lhn2pi-zigbee2mqtt/main.tf
+++ b/terraform/lhn2pi-zigbee2mqtt/main.tf
@@ -25,6 +25,7 @@ provider "docker" {
locals {
docker_image = "koenkk/zigbee2mqtt:1.42.0"
+ public_ip = module.ipam.hosts.lhn2-z2m.address
}
module "ipam" {
diff --git a/terraform/lhn2pi-zigbee2mqtt/zigbee2mqtt.tf b/terraform/lhn2pi-zigbee2mqtt/zigbee2mqtt.tf
index a77fe95..1e3e1a9 100644
--- a/terraform/lhn2pi-zigbee2mqtt/zigbee2mqtt.tf
+++ b/terraform/lhn2pi-zigbee2mqtt/zigbee2mqtt.tf
@@ -18,10 +18,13 @@ resource "docker_container" "zigbee2mqtt" {
# privileged = true
must_run = true
+ network_mode = "host"
+
ports {
internal = 8080
external = 8080
protocol = "tcp"
+ ip = local.public_ip
}
volumes {