<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alex A. Gromov</title>
    <description>The latest articles on DEV Community by Alex A. Gromov (@pandemrus).</description>
    <link>https://dev.to/pandemrus</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3843777%2F7495de39-2ee3-4381-b83f-55d0791fd4f7.jpg</url>
      <title>DEV Community: Alex A. Gromov</title>
      <link>https://dev.to/pandemrus</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pandemrus"/>
    <language>en</language>
    <item>
      <title>I built a GitLab alternative that runs on 100 MB RAM</title>
      <dc:creator>Alex A. Gromov</dc:creator>
      <pubDate>Wed, 25 Mar 2026 22:07:17 +0000</pubDate>
      <link>https://dev.to/pandemrus/i-built-a-gitlab-alternative-that-runs-on-100-mb-ram-328l</link>
      <guid>https://dev.to/pandemrus/i-built-a-gitlab-alternative-that-runs-on-100-mb-ram-328l</guid>
      <description>&lt;p&gt;I got tired of GitLab eating 4+ GB RAM on my homelab server. So I built &lt;strong&gt;GitRiver&lt;/strong&gt; - a self-hosted Git platform as a single Rust binary with built-in CI/CD, container registry, package registry, and even a GitOps deployer for Kubernetes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's inside (all in one binary)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Git hosting&lt;/strong&gt; - HTTP + SSH, LFS, GPG signing, web editor&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pull Requests&lt;/strong&gt; - code review, CODEOWNERS, merge queue, comment threads&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI/CD&lt;/strong&gt; - YAML pipelines, DAG, matrix builds, artifacts, caching, web terminal&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Container Registry&lt;/strong&gt; - OCI v2, multi-arch, retention policies, garbage collection&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Package Registry&lt;/strong&gt; - npm, PyPI, Cargo, Maven, NuGet, Generic&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitOps Deploy (RiverCD)&lt;/strong&gt; - built-in K8s deployer with canary/blue-green, drift detection, sync waves&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Issues&lt;/strong&gt; - Kanban boards, milestones, templates&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;8 notification channels&lt;/strong&gt; - Email, Telegram, Slack, Discord, Teams, Matrix, Webhook, In-app&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backup &amp;amp; Restore&lt;/strong&gt; - AES-256-GCM encryption, incremental, S3 streaming&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Wiki, Pages, Releases, Import/Mirroring&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick start
&lt;/h2&gt;

&lt;p&gt;Create &lt;code&gt;.env&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;&lt;span class="n"&gt;DB_USER&lt;/span&gt;=&lt;span class="n"&gt;gitriver&lt;/span&gt;
&lt;span class="n"&gt;DB_PASS&lt;/span&gt;=&lt;span class="n"&gt;changeme&lt;/span&gt;
&lt;span class="n"&gt;DB_NAME&lt;/span&gt;=&lt;span class="n"&gt;gitriver&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create &lt;code&gt;docker-compose.yml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;postgres&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;postgres:17-alpine&lt;/span&gt;
    &lt;span class="na"&gt;restart&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;unless-stopped&lt;/span&gt;
    &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;POSTGRES_USER&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${DB_USER}&lt;/span&gt;
      &lt;span class="na"&gt;POSTGRES_PASSWORD&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${DB_PASS}&lt;/span&gt;
      &lt;span class="na"&gt;POSTGRES_DB&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${DB_NAME}&lt;/span&gt;
    &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;./data/postgres:/var/lib/postgresql/data&lt;/span&gt;
    &lt;span class="na"&gt;healthcheck&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;test&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;CMD-SHELL"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;pg_isready&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;-U&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;${DB_USER}"&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;interval&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;5s&lt;/span&gt;
      &lt;span class="na"&gt;retries&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;5&lt;/span&gt;

  &lt;span class="na"&gt;gitriver&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gitriver/gitriver:latest&lt;/span&gt;
    &lt;span class="na"&gt;restart&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;unless-stopped&lt;/span&gt;
    &lt;span class="na"&gt;depends_on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;postgres&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;condition&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;service_healthy&lt;/span&gt;
    &lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;3000:3000"&lt;/span&gt;
    &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;GITRIVER_DB_HOST&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;postgres&lt;/span&gt;
      &lt;span class="na"&gt;GITRIVER_DB_PORT&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;5432&lt;/span&gt;
      &lt;span class="na"&gt;GITRIVER_DB_USER&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${DB_USER}&lt;/span&gt;
      &lt;span class="na"&gt;GITRIVER_DB_PASS&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${DB_PASS}&lt;/span&gt;
      &lt;span class="na"&gt;GITRIVER_DB_NAME&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${DB_NAME}&lt;/span&gt;
    &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;./data/gitriver:/var/lib/gitriver&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;/var/run/docker.sock:/var/run/docker.sock&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose up &lt;span class="nt"&gt;-d&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open &lt;code&gt;http://localhost:3000&lt;/code&gt; - the setup wizard will create an administrator.&lt;/p&gt;

&lt;h2&gt;
  
  
  How is it different from Gitea?
&lt;/h2&gt;

&lt;p&gt;Gitea is an excellent project - it has Actions (CI/CD), container registry, and even more package formats than GitRiver. If you need a lightweight Git server with CI, Gitea is a solid choice.&lt;/p&gt;

&lt;p&gt;GitRiver focuses on features Gitea doesn't have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Built-in GitOps Deploy (RiverCD)&lt;/strong&gt; - deploy to Kubernetes directly from the UI, with canary/blue-green strategies, drift detection, sync waves. No need for ArgoCD or Flux.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Merge Queue&lt;/strong&gt; - automatic CI-verified merging with temporary branches&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DORA Metrics&lt;/strong&gt; - deployment frequency, lead time, MTTR, change failure rate&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SCIM 2.0&lt;/strong&gt; - automatic user/group provisioning from IdP&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why not GitLab?
&lt;/h2&gt;

&lt;p&gt;GitLab requires 4+ GB RAM, Redis, Sidekiq, Puma, and dozens of processes. GitRiver runs on ~100 MB RAM with a single process + PostgreSQL.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend&lt;/strong&gt;: Rust (Axum, SQLx, Tokio) - 16 crates, hexagonal architecture&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend&lt;/strong&gt;: React 19 + TypeScript + Tailwind CSS&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database&lt;/strong&gt;: PostgreSQL 16+&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API&lt;/strong&gt;: 400+ REST endpoints with OpenAPI 3.1&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Community edition is free
&lt;/h2&gt;

&lt;p&gt;No limits on users, repos, CI pipelines, registries. Pro adds SAML/SCIM SSO, DORA metrics, audit log, custom roles.&lt;/p&gt;

&lt;p&gt;🌐 &lt;a href="https://gitriver.com" rel="noopener noreferrer"&gt;Website&lt;/a&gt; | 🐳 &lt;a href="https://hub.docker.com/r/gitriver/gitriver" rel="noopener noreferrer"&gt;Docker Hub&lt;/a&gt; | 📖 &lt;a href="https://gitriver.com/docs" rel="noopener noreferrer"&gt;Docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer any questions!&lt;/p&gt;

</description>
      <category>selfhosted</category>
      <category>rust</category>
      <category>devops</category>
      <category>docker</category>
    </item>
  </channel>
</rss>
