summaryrefslogtreecommitdiff
path: root/stacks/cgit
diff options
context:
space:
mode:
authorRATDAD <lambda@disroot.org>2025-12-17 19:53:38 -0500
committerRATDAD <lambda@disroot.org>2025-12-17 19:53:38 -0500
commita50e5d21b0430a734929bc17017cc8c394b25524 (patch)
tree8a61bac5b36ca8725f3fdf64d30073b081c7d643 /stacks/cgit
downloadrds-platform-a50e5d21b0430a734929bc17017cc8c394b25524.tar.gz
rds-platform-a50e5d21b0430a734929bc17017cc8c394b25524.tar.bz2
rds-platform-a50e5d21b0430a734929bc17017cc8c394b25524.zip
Initial Commit
Diffstat (limited to 'stacks/cgit')
-rw-r--r--stacks/cgit/.cgit.env.template7
-rw-r--r--stacks/cgit/.env.template15
-rw-r--r--stacks/cgit/.gitignore6
-rw-r--r--stacks/cgit/compose.yml23
4 files changed, 51 insertions, 0 deletions
diff --git a/stacks/cgit/.cgit.env.template b/stacks/cgit/.cgit.env.template
new file mode 100644
index 0000000..a50b83f
--- /dev/null
+++ b/stacks/cgit/.cgit.env.template
@@ -0,0 +1,7 @@
+#
+#
+# Stack Runtime Variables
+# HTTP_AUTH_USER=
+# HTTP_AUTH_PASSWORD=
+# GIT_HTTP_AUTH_USER=
+# GIT_HTTP_AUTH_PASSWORD=
diff --git a/stacks/cgit/.env.template b/stacks/cgit/.env.template
new file mode 100644
index 0000000..d96cdc5
--- /dev/null
+++ b/stacks/cgit/.env.template
@@ -0,0 +1,15 @@
+#
+#
+# Stack Compose Variables
+
+# Namespace
+_STACK=cgit-test
+_CONTAINER=cgit-test
+
+# Network
+_NET=test
+
+# Volumes
+_CSS_FILE=
+_CONFIG_FILE=
+_GIT_ROOT=
diff --git a/stacks/cgit/.gitignore b/stacks/cgit/.gitignore
new file mode 100644
index 0000000..1c1138e
--- /dev/null
+++ b/stacks/cgit/.gitignore
@@ -0,0 +1,6 @@
+# Ignore .env files
+*.env
+srv/
+srv/*
+config/
+config/*
diff --git a/stacks/cgit/compose.yml b/stacks/cgit/compose.yml
new file mode 100644
index 0000000..da4e144
--- /dev/null
+++ b/stacks/cgit/compose.yml
@@ -0,0 +1,23 @@
+name: ${_STACK}
+
+networks:
+ net:
+ name: ${_NET}
+ external: true
+
+services:
+ cgit:
+ container_name: ${_CONTAINER}
+ image: ratdad/cgit:latest
+ env_file:
+ - .cgit.env
+ - .env
+ networks:
+ - net
+ expose:
+ - 80
+ volumes:
+ # TODO: Create env overrides in docker-cgit for css/config file locations as well as the git root.
+ - ${_CSS_FILE:-./config/cgit.css}:/srv/www/htdocs/cgit/cgit.css
+ - ${_CONFIG_FILE:-./config/cgitrc}:/etc/cgitrc
+ - ${_GIT_ROOT:-./srv/git/}:/srv/git # mount the directory you use for your git server