Updates
Add birdnet
This commit is contained in:
60
core-os-podman/birdnet-go.tf
Normal file
60
core-os-podman/birdnet-go.tf
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
|
||||||
|
data "docker_registry_image" "birdnet-go" {
|
||||||
|
name = "ghcr.io/tphakala/birdnet-go:nightly"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "docker_image" "birdnet-go" {
|
||||||
|
name = data.docker_registry_image.birdnet-go.name
|
||||||
|
pull_triggers = [data.docker_registry_image.birdnet-go.sha256_digest]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
resource "docker_container" "birdnet-go" {
|
||||||
|
image = docker_image.birdnet-go.image_id
|
||||||
|
name = "birdnet-go"
|
||||||
|
restart = "always"
|
||||||
|
|
||||||
|
env = [
|
||||||
|
"TZ=Europe/Amsterdam",
|
||||||
|
"BIRDNET_HOST=birdnet.rescla.me",
|
||||||
|
"BIRDNET_UID=1000",
|
||||||
|
"BIRDNET_GID=1000",
|
||||||
|
"BIRDNET_LOCALE=nl",
|
||||||
|
"BIRDNET_LATITUDE=53.006012",
|
||||||
|
"BIRDNET_LONGITUDE=6.09=82030",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
mounts {
|
||||||
|
target = "/data"
|
||||||
|
source = "/var/lib/containers/birdnet-go/data"
|
||||||
|
type = "bind"
|
||||||
|
}
|
||||||
|
|
||||||
|
mounts {
|
||||||
|
target = "/config"
|
||||||
|
source = "/var/lib/containers/birdnet-go/config"
|
||||||
|
type = "bind"
|
||||||
|
}
|
||||||
|
|
||||||
|
mounts {
|
||||||
|
target = "/config/hls"
|
||||||
|
type = "tmpfs"
|
||||||
|
|
||||||
|
tmpfs_options {
|
||||||
|
size_bytes = 50000000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = [
|
||||||
|
ulimit,
|
||||||
|
log_opts
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
networks_advanced {
|
||||||
|
name = docker_network.container-public.name
|
||||||
|
ipv4_address = "192.168.3.54"
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user