diff options
author | Mark Powers <mark@marks.kitchen> | 2024-07-20 16:20:13 -0500 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2024-07-20 16:20:13 -0500 |
commit | abe2aeceab858d6ad3a838ffe2970a0e9e2a4606 (patch) | |
tree | 83a9da03fbf01cbc0faf87f45b4ddd6e7344faf6 /templates/git-compose.yml.j2 |
Initial commitmain
Diffstat (limited to 'templates/git-compose.yml.j2')
-rw-r--r-- | templates/git-compose.yml.j2 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/git-compose.yml.j2 b/templates/git-compose.yml.j2 new file mode 100644 index 0000000..af35c0b --- /dev/null +++ b/templates/git-compose.yml.j2 @@ -0,0 +1,15 @@ +services: + cgit: + build: ./docker_cgit.git/ + restart: always + volumes: + - /srv/git:/srv/git + labels: +{% with router_name="git", host_prefix="git", container_port="80" %} +{% include "util/traefik_labels.txt.j2" %} +{% endwith %} + + - traefik.http.middlewares.remove-cgit.replacepathregex.regex=^/cgit/(.*) + - traefik.http.middlewares.remove-cgit.replacepathregex.replacement=/$$1 + - traefik.http.middlewares.add-cgit.addprefix.prefix=/cgit + - traefik.http.routers.git.middlewares=remove-cgit,add-cgit |