Add borg, crawl4ai en open-webui

This commit is contained in:
Marc Fokkert
2026-05-16 08:42:35 +02:00
parent b1835f9281
commit fb8246245c
6 changed files with 157 additions and 9 deletions
+30 -7
View File
@@ -1,6 +1,6 @@
data "docker_registry_image" "borg" {
name = "pschiffe/borg:latest"
name = "borgwarehouse/borgwarehouse:latest"
}
resource "docker_image" "borg" {
@@ -8,27 +8,50 @@ resource "docker_image" "borg" {
pull_triggers = [data.docker_registry_image.borg.sha256_digest]
}
resource "docker_container" "borg" {
image = docker_image.borg.image_id
name = "borg"
restart = "always"
env = [
"BORG_REPO=/borg/repo"
"WEB_SERVER_PORT=3000",
"SSH_SERVER_PORT=2222",
"FQDN=borg.rescla.me",
"FQDN_LAN=192.168.3.56",
"NEXTAUTH_URL=https://borg.rescla.me",
"NEXTAUTH_SECRET=BO/oRBi7pGunZIgNdlaJgmA/+TVc57q4yZUi3mbF4NE=",
"UNIX_USER=borgwarehouse",
"PUID=3006",
"PGID=3006",
"CONFIG_PATH=/home/borgwarehouse/app/config",
"BORG_REPOSITORY_PATH=/home/borgwarehouse/repos",
"SSH_PATH=/home/borgwarehouse/.ssh",
"SSH_HOST=/etc/ssh",
"NEXT_TELEMETRY_DISABLED=1"
]
mounts {
target = "/root"
target = "/home/borgwarehouse/app/config"
source = "/var/lib/containers/borg/config"
type = "bind"
}
volumes {
container_path = "/borg/repo"
volume_name = docker_volume.truenas-borg.name
mounts {
target = "/home/borgwarehouse/.ssh"
source = "/var/lib/containers/borg/sshkeys/clients"
type = "bind"
}
mounts {
target = "/etc/ssh"
source = "/var/lib/containers/borg/sshkeys/host"
type = "bind"
}
volumes {
container_path = "/home/borgwarehouse/repos"
volume_name = docker_volume.truenas-borg.name
}
lifecycle {
ignore_changes = [