Initial commit
This commit is contained in:
36
_disabled/unifi-video.tf
Normal file
36
_disabled/unifi-video.tf
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user