diff options
Diffstat (limited to 'stacks/cgit')
| -rw-r--r-- | stacks/cgit/.cgit.env.template | 7 | ||||
| -rw-r--r-- | stacks/cgit/.env.template | 15 | ||||
| -rw-r--r-- | stacks/cgit/.gitignore | 6 | ||||
| -rw-r--r-- | stacks/cgit/compose.yml | 23 |
4 files changed, 51 insertions, 0 deletions
diff --git a/stacks/cgit/.cgit.env.template b/stacks/cgit/.cgit.env.template new file mode 100644 index 0000000..a50b83f --- /dev/null +++ b/stacks/cgit/.cgit.env.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/cgit/.env.template b/stacks/cgit/.env.template new file mode 100644 index 0000000..d96cdc5 --- /dev/null +++ b/stacks/cgit/.env.template @@ -0,0 +1,15 @@ +# +# +# Stack Compose Variables + +# Namespace +_STACK=cgit-test +_CONTAINER=cgit-test + +# Network +_NET=test + +# Volumes +_CSS_FILE= +_CONFIG_FILE= +_GIT_ROOT= diff --git a/stacks/cgit/.gitignore b/stacks/cgit/.gitignore new file mode 100644 index 0000000..1c1138e --- /dev/null +++ b/stacks/cgit/.gitignore @@ -0,0 +1,6 @@ +# Ignore .env files +*.env +srv/ +srv/* +config/ +config/* diff --git a/stacks/cgit/compose.yml b/stacks/cgit/compose.yml new file mode 100644 index 0000000..da4e144 --- /dev/null +++ b/stacks/cgit/compose.yml @@ -0,0 +1,23 @@ +name: ${_STACK} + +networks: + net: + name: ${_NET} + external: true + +services: + cgit: + container_name: ${_CONTAINER} + image: ratdad/cgit:latest + env_file: + - .cgit.env + - .env + networks: + - net + 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 + - ${_GIT_ROOT:-./srv/git/}:/srv/git # mount the directory you use for your git server |
