summaryrefslogtreecommitdiff
path: root/stacks/scm/compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'stacks/scm/compose.yml')
-rw-r--r--stacks/scm/compose.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/stacks/scm/compose.yml b/stacks/scm/compose.yml
new file mode 100644
index 0000000..b40dbaf
--- /dev/null
+++ b/stacks/scm/compose.yml
@@ -0,0 +1,24 @@
+name: ${_STACK_0}
+
+networks:
+ net:
+ name: ${_NET_0}
+ external: true
+
+services:
+ cgit:
+ container_name: ${_CONTAINER_0}
+ image: ratdad/cgit:latest
+ env_file:
+ - .run.env
+ - .env
+ networks:
+ - 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