diff options
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 |