]> prime8.dev >> repos - p8d.git/commitdiff
Added gitweb
authorDamian Myrda <monkey.damianek@gmail.com>
Wed, 18 Sep 2024 12:04:00 +0000 (07:04 -0500)
committerDamian Myrda <monkey.damianek@gmail.com>
Wed, 18 Sep 2024 12:04:00 +0000 (07:04 -0500)
caddy
compose.yml

diff --git a/caddy b/caddy
index d089997a7ba694ca0d376c3d35f6cd3d40eb949a..37549baea6d5f57c458de9842d3ef0993a9b1193 100644 (file)
--- a/caddy
+++ b/caddy
@@ -24,7 +24,7 @@ mail.prime8.dev {
 }
 
 git.prime8.dev {
-  reverse_proxy http://git:80
+  reverse_proxy http://gitweb:80
   cache
 
   tls damian@prime8.dev
index 4be0ce05d5e076cecead7d203a6a076807d29ead..4acb1c6125667e7401fa5e5ec7db60af7d6d40fe 100644 (file)
@@ -4,7 +4,7 @@ services:
     container_name: fail2ban
     volumes:
       - ./jail:/etc/fail2ban/jail.local
-      - /var/log/mail/:/var/log/mail/:ro
+      - /var/log/mail/mail.log:/var/log/mail/mail.log:ro
       - /var/log/auth.log:/var/log/auth.log:ro
     networks:
       - common
@@ -61,23 +61,23 @@ services:
       - NET_ADMIN
     restart: always
 
-  git:
-    container_name: git
-    image: woahbase/alpine-cgit:latest
-    environment:
-      - CGIT_HOSTNAME=git.prime8.dev
-      - CGIT_SUBPATH=/
-    ports:
-      - "22"
-    expose:
-      - "80"
-    volumes:
-      - ./git/cgitrc:/etc/cgitrc
-      - /etc/ssh:/ssh/
-      - ./git/repos/:/home/git/repositories/
-    networks:
-      - common
-    restart: always
+   repos:
+     container_name: repos
+     image: jgiannuzzi/gitolite
+     ports:
+       - "22:22"
+     volumes:
+       - ./git/repos/:/var/lib/git/
+
+  gitweb:
+     container_name: gitweb
+     image: mlan/gitweb
+     depends_on:
+       - repo
+     volumes:
+       - ./git/repos/:/var/lib/git/:ro
+     expose:
+       - "80"
 
   csc:
     container_name: csc