From 8ab3864cf8efc3fdd63af2d07a95cf42a4d6d2d6 Mon Sep 17 00:00:00 2001 From: Nemo <commits@captnemo.in> Date: Fri, 09 May 2025 00:25:39 +0530 Subject: [PATCH] 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 --- 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}", -- rgit 0.1.5