Initial commit

This commit is contained in:
Marc Fokkert
2023-07-26 21:01:51 +02:00
commit e357babf6d
52 changed files with 1681 additions and 0 deletions

51
_disabled/rhasspy.tf Normal file
View File

@@ -0,0 +1,51 @@
data "docker_registry_image" "rhasspy" {
name = "rhasspy/rhasspy"
}
resource "docker_image" "rhasspy" {
name = data.docker_registry_image.rhasspy.name
pull_triggers = [data.docker_registry_image.rhasspy.sha256_digest]
}
resource "docker_container" "rhasspy" {
image = docker_image.rhasspy.latest
name = "rhasspy"
command = [
"--profile", "en",
"--user-profiles", "/profiles"
]
mounts {
target = "/config"
source = "/share/appdata/rhasspy"
type = "bind"
}
mounts {
target = "/etc/localtime"
source = "/etc/localtime"
type = "bind"
read_only = true
}
restart = "always"
networks_advanced {
name = docker_network.bridge.name
ipv4_address = "192.168.2.118"
}
devices {
host_path = "/dev/snd"
container_path = "/dev/snd"
}
lifecycle {
ignore_changes = [
ulimit,
log_opts
]
}
}

36
_disabled/unifi-video.tf Normal file
View File

@@ -0,0 +1,36 @@
data "docker_registry_image" "unifi-video" {
name = "pducharme/unifi-video-controller"
}
resource "docker_image" "unifi-video" {
name = data.docker_registry_image.unifi-video.name
pull_triggers = [data.docker_registry_image.unifi-video.sha256_digest]
}
resource "docker_container" "unifi-video" {
image = docker_image.unifi-video.latest
name = "unifi-video"
mounts {
target = "/var/lib/unifi-video"
source = "/share/appdata/unifi-video/data"
type = "bind"
}
mounts {
target = "/var/lib/unifi-video/videos"
source = "/share/appdata/unifi-video/videos"
type = "bind"
}
capabilities {
add = ["SYS_ADMIN", "DAC_READ_SEARCH"]
}
restart = "always"
networks_advanced {
name = docker_network.bridge.name
ipv4_address = "192.168.2.71"
}
}