Some checks failed
Terraform CI/CD / Terraform Format, Validate, Lint, Scan (push) Successful in 1m16s
Terraform CI/CD / Terraform Plan (push) Has been skipped
Terraform CI/CD / Terraform Apply (push) Successful in 52s
Terraform CI/CD / Terraform Format, Validate, Lint, Scan (pull_request) Successful in 2m38s
Terraform CI/CD / Terraform Plan (pull_request) Failing after 1m28s
Terraform CI/CD / Terraform Apply (pull_request) Has been skipped
53 lines
1.1 KiB
HCL
53 lines
1.1 KiB
HCL
job "homeassistant" {
|
|
group "homeassistant" {
|
|
|
|
network {
|
|
port "homeassistant" {
|
|
static = 8123
|
|
}
|
|
}
|
|
|
|
task "homeassistant" {
|
|
driver = "docker"
|
|
|
|
config {
|
|
image = "ghcr.io/home-assistant/home-assistant:2025.5.2"
|
|
network_mode = "host"
|
|
privileged = true
|
|
|
|
volumes = [
|
|
"/etc/localtime:/etc/localtime:ro",
|
|
"/run/dbus:/run/dbus:ro"
|
|
]
|
|
}
|
|
|
|
volume_mount {
|
|
volume = "config"
|
|
destination = "/config"
|
|
}
|
|
|
|
resources {
|
|
cpu = 500
|
|
memory = 512
|
|
}
|
|
}
|
|
|
|
volume "config" {
|
|
type = "csi"
|
|
read_only = false
|
|
source = "martinibar_prod_home-assistant_config"
|
|
attachment_mode = "file-system"
|
|
access_mode = "single-node-writer"
|
|
}
|
|
|
|
service {
|
|
port = "homeassistant"
|
|
provider = "consul"
|
|
tags = [
|
|
"traefik.enable=true",
|
|
"traefik.http.routers.homeassistant.entrypoints=websecure",
|
|
"traefik.http.routers.homeassistant.rule=Host(`homeassistant.brmartin.co.uk`)"
|
|
]
|
|
}
|
|
}
|
|
}
|