]> git.zue.dev - git.zue.dev/commitdiff
add docker compose configuration
authorAlex Pooley (@zuedev) <zuedev@gmail.com>
Mon, 23 Mar 2026 10:44:03 +0000 (10:44 +0000)
committerAlex Pooley (@zuedev) <zuedev@gmail.com>
Mon, 23 Mar 2026 10:44:03 +0000 (10:44 +0000)
docker-compose.yaml [new file with mode: 0644]

diff --git a/docker-compose.yaml b/docker-compose.yaml
new file mode 100644 (file)
index 0000000..cb69ce9
--- /dev/null
@@ -0,0 +1,22 @@
+services:
+  gitweb:
+    build:
+      context: .
+      dockerfile_inline: |
+        FROM mlan/gitweb
+        CMD echo "our \$$omit_owner = true;" >> /etc/gitweb.conf && \
+            echo "our \$$site_name = 'git.zue.dev';" >> /etc/gitweb.conf && \
+            echo "our \$$projects_list_description_width = 100;" >> /etc/gitweb.conf && \
+            echo "our \$$projects_list_group_categories = true;" >> /etc/gitweb.conf && \
+            echo "\$$feature{'blame'}{'default'} = [1];" >> /etc/gitweb.conf && \
+            echo "\$$feature{'highlight'}{'default'} = [1];" >> /etc/gitweb.conf && \
+            echo "\$$feature{'avatar'}{'default'} = ['gravatar'];" >> /etc/gitweb.conf && \
+            echo "\$$feature{'timed'}{'default'} = [1];" >> /etc/gitweb.conf && \
+            echo "\$$feature{'remote_heads'}{'default'} = [1];" >> /etc/gitweb.conf && \
+            nginx -g 'daemon off;'
+    ports:
+      - 6300:80
+    environment:
+      - PROJECTS_LIST=
+    volumes:
+      - /home/git/:/var/lib/git/repositories/:ro
\ No newline at end of file
This page took 0.064497 seconds and 4 git commands to generate.