A minimal self-hosted git browser on Rust axum: bare repos rendered as a website with commits, diffs, syntax-highlighted blobs, atom feeds, and clone over HTTPS.
axumdockergitgit-browsergitoxidegixrustself-hosted
1services:
2 web:
3 container_name: repos
4 build: .
5 init: true
6 env_file: .env
7 environment:
8 REPOS_REPO_ROOT: /srv/git
9 volumes:
10 # /srv/git lives on the host (the bare repos the deploy hooks push to).
11 # Mount read-only so the web process can't corrupt a bare repo, even
12 # accidentally.
13 - /srv/git:/srv/git:ro
14 restart: unless-stopped