Add birdnet
This commit is contained in:
Marc Fokkert
2025-12-30 09:27:41 +01:00
parent 7c7151a977
commit 29ac7df302
3 changed files with 62 additions and 2 deletions

View 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