summaryrefslogtreecommitdiff
path: root/stacks/cgit
diff options
context:
space:
mode:
authorRATDAD <lambda@disroot.org>2025-12-21 17:44:23 -0500
committerRATDAD <lambda@disroot.org>2025-12-21 17:44:23 -0500
commitaf887c36d36bbeae04cc1576587758fb18ee1ef2 (patch)
tree91327754cbe3f65523eb277ebe243e3c5199879b /stacks/cgit
parenta50e5d21b0430a734929bc17017cc8c394b25524 (diff)
downloadrds-platform-af887c36d36bbeae04cc1576587758fb18ee1ef2.tar.gz
rds-platform-af887c36d36bbeae04cc1576587758fb18ee1ef2.tar.bz2
rds-platform-af887c36d36bbeae04cc1576587758fb18ee1ef2.zip
Enforcing static volume names for each stack
Diffstat (limited to 'stacks/cgit')
-rw-r--r--stacks/cgit/.env.template7
-rw-r--r--stacks/cgit/.gitignore7
-rw-r--r--stacks/cgit/compose.yml9
3 files changed, 15 insertions, 8 deletions
diff --git a/stacks/cgit/.env.template b/stacks/cgit/.env.template
index d96cdc5..94ec0ed 100644
--- a/stacks/cgit/.env.template
+++ b/stacks/cgit/.env.template
@@ -3,13 +3,14 @@
# Stack Compose Variables
# Namespace
-_STACK=cgit-test
-_CONTAINER=cgit-test
+_STACK=
+_CONTAINER=
# Network
-_NET=test
+_NET=
# Volumes
+# TODO: Make these cgit-docker builtins.
_CSS_FILE=
_CONFIG_FILE=
_GIT_ROOT=
diff --git a/stacks/cgit/.gitignore b/stacks/cgit/.gitignore
index 1c1138e..9cc0f59 100644
--- a/stacks/cgit/.gitignore
+++ b/stacks/cgit/.gitignore
@@ -2,5 +2,8 @@
*.env
srv/
srv/*
-config/
-config/*
+opt/
+opt/*
+etc/
+etc/*
+compose.local.yml
diff --git a/stacks/cgit/compose.yml b/stacks/cgit/compose.yml
index da4e144..e3c7ab1 100644
--- a/stacks/cgit/compose.yml
+++ b/stacks/cgit/compose.yml
@@ -17,7 +17,10 @@ services:
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
+ # TODO: Make these cgit-docker builtins.
+ - ${_CSS_FILE:-./opt/cgit.css}:/srv/www/htdocs/cgit/cgit.css
+ - ${_SITE_HEADER:-./opt/header.html}:/opt/header.html
+ - ${_SITE_FOOTER:-./opt/footer.html}:/opt/footer.html
+ - ${_ROOT_README:-./opt/README.txt}:/opt/README.txt
+ - ${_CONFIG_FILE:-./etc/cgitrc}:/etc/cgitrc
- ${_GIT_ROOT:-./srv/git/}:/srv/git # mount the directory you use for your git server