From: Alex Pooley (@zuedev) Date: Mon, 23 Mar 2026 10:44:03 +0000 (+0000) Subject: add docker compose configuration X-Git-Url: http://git.zue.dev/?a=commitdiff_plain;h=842c594436288203d03c25c3a2c7b172ed23ba23;p=git.zue.dev add docker compose configuration --- 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