diff options
| author | RATDAD <lambda@disroot.org> | 2026-03-06 02:05:52 -0500 |
|---|---|---|
| committer | RATDAD <lambda@disroot.org> | 2026-03-06 02:05:52 -0500 |
| commit | 2578d12ea47d10130472a845244e4aaac48897cb (patch) | |
| tree | 3dc5ba45a79006d549cb9e551724a6a5d19f71b4 /stacks/scm | |
| parent | 88ba319238bb4af0106bc1a83fbbb1963af88fe1 (diff) | |
| download | rd-cloud-2578d12ea47d10130472a845244e4aaac48897cb.tar.gz rd-cloud-2578d12ea47d10130472a845244e4aaac48897cb.tar.bz2 rd-cloud-2578d12ea47d10130472a845244e4aaac48897cb.zip | |
checkpoint: development state
Diffstat (limited to 'stacks/scm')
| -rw-r--r-- | stacks/scm/.env.template | 18 | ||||
| -rw-r--r-- | stacks/scm/.gitignore | 9 | ||||
| -rw-r--r-- | stacks/scm/.run.template | 7 | ||||
| -rw-r--r-- | stacks/scm/compose.yml | 24 |
4 files changed, 58 insertions, 0 deletions
diff --git a/stacks/scm/.env.template b/stacks/scm/.env.template new file mode 100644 index 0000000..c461361 --- /dev/null +++ b/stacks/scm/.env.template @@ -0,0 +1,18 @@ +# +# +# Stack Compose Variables + +# Namespaces +_STACK_0= + +# Containers +_CONTAINER_0= + +# Networks +_NET_0= + +# Volumes +_CSS_FILE= +_CONFIG_FILE= +_GIT_ROOT= +_IMPORTS= diff --git a/stacks/scm/.gitignore b/stacks/scm/.gitignore new file mode 100644 index 0000000..4c28985 --- /dev/null +++ b/stacks/scm/.gitignore @@ -0,0 +1,9 @@ +# Ignore .env files +*.env +srv/ +srv/* +opt/ +opt/* +etc/ +etc/* +compose.test.yml diff --git a/stacks/scm/.run.template b/stacks/scm/.run.template new file mode 100644 index 0000000..cd5eebc --- /dev/null +++ b/stacks/scm/.run.template @@ -0,0 +1,7 @@ +# +# +# Stack Runtime Variables +HTTP_AUTH_USER= +HTTP_AUTH_PASSWORD= +GIT_HTTP_AUTH_USER= +GIT_HTTP_AUTH_PASSWORD= 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 |
