From abe2aeceab858d6ad3a838ffe2970a0e9e2a4606 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sat, 20 Jul 2024 16:20:13 -0500 Subject: Initial commit --- templates/git-compose.yml.j2 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 templates/git-compose.yml.j2 (limited to 'templates/git-compose.yml.j2') 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 -- cgit v1.2.3