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

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"
}
}