From fe7d43ac31f7b9fe0c9be9355d35fa2ee57bd46f Mon Sep 17 00:00:00 2001 From: RATDAD Date: Wed, 24 Dec 2025 13:41:34 -0500 Subject: Suppress edge memory limit warning && simplify bindmounts for cgit --- stacks/cgit/.env.template | 1 + stacks/cgit/compose.yml | 4 +--- stacks/edge/compose.yml | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'stacks') diff --git a/stacks/cgit/.env.template b/stacks/cgit/.env.template index 94ec0ed..663c8c5 100644 --- a/stacks/cgit/.env.template +++ b/stacks/cgit/.env.template @@ -14,3 +14,4 @@ _NET= _CSS_FILE= _CONFIG_FILE= _GIT_ROOT= +_IMPORTS= diff --git a/stacks/cgit/compose.yml b/stacks/cgit/compose.yml index e3c7ab1..cf21261 100644 --- a/stacks/cgit/compose.yml +++ b/stacks/cgit/compose.yml @@ -19,8 +19,6 @@ services: volumes: # 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 + - ${_IMPORTS:-./opt/}:/opt - ${_GIT_ROOT:-./srv/git/}:/srv/git # mount the directory you use for your git server diff --git a/stacks/edge/compose.yml b/stacks/edge/compose.yml index 75baf0d..a1e71f4 100644 --- a/stacks/edge/compose.yml +++ b/stacks/edge/compose.yml @@ -23,6 +23,8 @@ services: - .env networks: - net + cap_add: + - NET_ADMIN # Allow Caddy to redefine memory limits based on host. ports: - 80:80 - 443:443 @@ -32,3 +34,4 @@ services: - ${_WEBROOT:-.srv/}:/srv - data:/data - config:/config + - /var/log/http/:/var/log/http # Bind for f2b. -- cgit v1.2.3-70-g09d2