From c4370a17dec7c1090c92efc195f6bd1188ba9bde Mon Sep 17 00:00:00 2001 From: RATDAD Date: Sat, 14 Mar 2026 19:09:51 -0400 Subject: refactor: alter the position of environment files and container routing --- stacks/scm/compose.yml | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'stacks/scm/compose.yml') diff --git a/stacks/scm/compose.yml b/stacks/scm/compose.yml index b40dbaf..c1e4bb8 100644 --- a/stacks/scm/compose.yml +++ b/stacks/scm/compose.yml @@ -1,24 +1,19 @@ -name: ${_STACK_0} - networks: - net: - name: ${_NET_0} + edge_net: + name: ${EDGE_NET} external: true services: - cgit: - container_name: ${_CONTAINER_0} + scm: image: ratdad/cgit:latest - env_file: - - .run.env - - .env networks: - - net + - edge_net expose: - 80 volumes: - # TODO: Make these cgit-docker builtins. - - ${_CSS_FILE:-./opt/cgit.css}:/srv/www/htdocs/cgit/cgit.css - - ${_CONFIG_FILE:-./etc/cgitrc}:/etc/cgitrc - - ${_IMPORTS:-./opt/}:/opt - - ${_GIT_ROOT:-./srv/git/}:/srv/git # mount the directory you use for your git server + - ${SECRETS}/scm/cgit.css}:/srv/www/htdocs/cgit/cgit.css + - ${SECRETS}/scm/header.html:/opt/header.html + - ${SECRETS}/scm/footer.html:/opt/footer.html + - ${SECRETS}/scm/README.txt:/opt/README.txt + - ${SECRETS}/scm/cgitrc:/etc/cgitrc + - ${GIT_ROOT}:/srv/git -- cgit v1.2.3-70-g09d2