From af887c36d36bbeae04cc1576587758fb18ee1ef2 Mon Sep 17 00:00:00 2001 From: RATDAD Date: Sun, 21 Dec 2025 17:44:23 -0500 Subject: Enforcing static volume names for each stack --- stacks/cgit/.env.template | 7 ++++--- stacks/cgit/.gitignore | 7 +++++-- stacks/cgit/compose.yml | 9 ++++++--- 3 files changed, 15 insertions(+), 8 deletions(-) (limited to 'stacks/cgit') 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 -- cgit v1.2.3-70-g09d2