61 lines
1.1 KiB
HCL
61 lines
1.1 KiB
HCL
|
|
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"
|
|
}
|
|
}
|