🏡 index : github.com/captn3m0/nebula.git

author Nemo <commits@captnemo.in> 2025-05-09 0:25:39.0 +05:30:00
committer Nemo <commits@captnemo.in> 2025-05-09 0:25:39.0 +05:30:00
commit
8ab3864cf8efc3fdd63af2d07a95cf42a4d6d2d6 [patch]
tree
f378ab5b17e802e1b8f1cc0ee0a2424ad19faf70
parent
c29df346caa239e53baf23895d8c885fe990aa1f
download
8ab3864cf8efc3fdd63af2d07a95cf42a4d6d2d6.tar.gz

setup rgit.

klaus does not easily support picking up the root
repo (it prefers bash expansion, which I can't do because
I am running docker commands remotely.)

So instead trying out rgit + gickup

Diff

 rgit.tf               | 39 +++++++++++++++++++++++++++++++++++++++
 monitoring/grafana.tf |  9 +++++++++
 2 files changed, 47 insertions(+), 1 deletion(-)

diff --git a/rgit.tf b/rgit.tf
new file mode 100644
index 0000000..15a981c 100644
--- /dev/null
+++ a/rgit.tf
@@ -1,0 +1,39 @@
module "rgit" {

  name   = "rgit"
  source = "./modules/container"
  image  = "ghcr.io/w4/rgit:main"

  web = {

    expose = true
    port   = 8000
    host   = "git.captnemo.in"
  }

  user = "1000:1000"

  networks = ["traefik"]
  command = [

    "[::]:8000",
    "/git",
    "-d",
    "/dev/shm/rgit-cache.db"
  ]

  env = [

    "REFRESH_INTERVAL=5m"
  ]

  volumes = [

    {
      host_path      = "/mnt/xwing/data/gickup"
      container_path = "/git",
      read_only = true
      type= "bind"
    }
  ]

  resource = {

    memory      = 512
    memory_swap = 512
  }
}
diff --git a/monitoring/grafana.tf b/monitoring/grafana.tf
index 004fbf5..d249b50 100644
--- a/monitoring/grafana.tf
+++ a/monitoring/grafana.tf
@@ -25,7 +25,14 @@
    },
  ]

  networks = ["monitoring"]
  networks = ["monitoring", "bridge"]

  dns = [

    "192.168.1.111",
    # NextDNS
    "45.90.28.120",
    "45.90.30.120",
  ]

  env = [

    "GF_SERVER_ROOT_URL=https://grafana.${var.domain}",