From 842c594436288203d03c25c3a2c7b172ed23ba23 Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Mon, 23 Mar 2026 10:44:03 +0000 Subject: [PATCH] add docker compose configuration --- docker-compose.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..cb69ce9 --- /dev/null +++ b/docker-compose.yaml @@ -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 -- 2.49.1