Adds home-assistant
Trying to run https://hackaday.com/2021/07/24/esp8266-adds-wifi-logging-to-ikeas-air-quality-sensor/
This commit is contained in:
parent
1feaf2e4f6
commit
e18d8b11b1
|
@ -0,0 +1,24 @@
|
||||||
|
module "home-assistant" {
|
||||||
|
name = "home-assistant"
|
||||||
|
source = "../modules/container"
|
||||||
|
|
||||||
|
image = "ghcr.io/home-assistant/home-assistant:stable"
|
||||||
|
|
||||||
|
resource = {
|
||||||
|
memory = 1024
|
||||||
|
memory_swap = 1024
|
||||||
|
}
|
||||||
|
|
||||||
|
env = [
|
||||||
|
"TZ=Asia/Kolkata",
|
||||||
|
]
|
||||||
|
|
||||||
|
network_mode = "host"
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
{
|
||||||
|
container_path = "/config"
|
||||||
|
host_path = "/mnt/zwing/config/home-assistant"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
4
main.tf
4
main.tf
|
@ -91,6 +91,10 @@ module "digitalocean" {
|
||||||
source = "./digitalocean"
|
source = "./digitalocean"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module "home-assistant" {
|
||||||
|
source = "./home-assistant"
|
||||||
|
}
|
||||||
|
|
||||||
module "mastodon" {
|
module "mastodon" {
|
||||||
source = "./mastodon"
|
source = "./mastodon"
|
||||||
db-password = data.pass_password.mastodon-db-password.password
|
db-password = data.pass_password.mastodon-db-password.password
|
||||||
|
|
|
@ -17,6 +17,8 @@ resource "docker_container" "container" {
|
||||||
entrypoint = var.entrypoint
|
entrypoint = var.entrypoint
|
||||||
user = var.user
|
user = var.user
|
||||||
|
|
||||||
|
privileged = var.privileged
|
||||||
|
|
||||||
network_mode = var.network_mode
|
network_mode = var.network_mode
|
||||||
|
|
||||||
gpus = var.gpu ? "all" : ""
|
gpus = var.gpu ? "all" : ""
|
||||||
|
|
|
@ -102,6 +102,11 @@ variable "volumes" {
|
||||||
default = {}
|
default = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "privileged" {
|
||||||
|
description = " If true, the container runs in privileged mode."
|
||||||
|
default = false
|
||||||
|
}
|
||||||
|
|
||||||
variable "capabilities" {
|
variable "capabilities" {
|
||||||
description = "capabilities"
|
description = "capabilities"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue