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(-)
@@ -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
}
}
@@ -25,7 +25,14 @@
},
]
networks = ["monitoring"]
networks = ["monitoring", "bridge"]
dns = [
"192.168.1.111",
"45.90.28.120",
"45.90.30.120",
]
env = [
"GF_SERVER_ROOT_URL=https://grafana.${var.domain}",