Getting Started with Forgejo: Self-Hosted Git Server using Podman

Self-Host Git with Forgejo + Podman
On 2 min, 26 sec read

Forgejo: A Beginner-Friendly, Open Source Git Server (with Podman Installation Guide)

Introduction to Forgejo

If you’re looking for a free and open-source alternative to GitHub or GitLab, Forgejo is a great choice. Built on Forgejo, Forgejo is a community-driven Git server that you can self-host for full control over your repositories and development workflows.

Whether you’re working solo, teaching students, or managing a small team, Forgejo can be easily installed and run using lightweight container technologies like Podman or Podman Compose.

In this post, I’ll walk you through a basic installation of Forgejo using Podman, and share how I can help you get started with Git, Forgejo setup, or repository migration.

Why Forgejo?

  • Open-source (AGPL-3.0 licensed)
  • Lightweight and fast
  • Easy to install with container support
  • Great for personal, team, or educational use
  • Active community and regular updates

How to Install Forgejo Using Podman

Step 1: Create a Directory for Forgejo

mkdir -p ~/forgejo/{data,config}
cd ~/forgejo

Step 2: Create a podman-compose.yml File

version: "3"

services:
  forgejo:
    image: codeberg.org/forgejo/forgejo:12.0.4-rootless
    container_name: forgejo
    ports:
      - "3000:3000"
      - "222:22"
    volumes:
      - ./data:/data
    restart: always

Save this as podman-compose.yml.

Step 3: Start Forgejo

podman-compose up -d

Once it’s up, visit http://localhost:3000 in your browser to complete the setup wizard.

Screenshots and Screencast Tutorial

Compose YAML
Gnome Text Editor Displaying Podman Compose YAML File

Forgejo Container
Command Line Podman Compose Building Forgejo Container

Forgejo Initial Configuration
Web Browser Displaying Initial Forgejo Configuration

Forgejo Installation
Web Browser Displaying Installation Wait Screen

Forgejo Dashboard
Web Browser Displaying Dashboard Screen

Forgejo User Profile
Web Browser Displaying User Settings Screen

Forgejo Admin
Web Browser Displaying Admin Settings Screen

Forgejo New Repo
Web Browser Displaying New Repository Screen

Forgejo Repo Code
Web Browser Displaying Repository Code Screen

SSH Key Generation
Command Line Displaying SSH Key Generator

Forgejo Add SSH Key
Web Browser Displaying Add SSH Key Screen

SSH Configuration
Gnome Text Editor Displaying SSH Configuration

Git Repo Clone
Command Line Displaying Git Clone Result

App.py
Gnome Text Editor Displaying App.py File

Test_app.py
Gnome Text Editor Displaying Test_app.py File

Git Push
Command Line Displaying Git Push Result

Forgejo Repo Contributions
Web Browser Displaying Repository Contributions

Forgejo Repo Code Commits
Web Browser Displaying Repository Code Commits

Screencast Of Forgejo Setup

Need Help with Git, Forgejo, or Programming?

I am Edward Ojambo, and I offer the following:

Conclusion

Forgejo is a fantastic, free, and open-source Git hosting solution that gives you full control over your codebase. With Podman, getting started is quick and easy – and if you ever need help, I’m just a click away.

🚀 Recommended Resources


Disclosure: Some of the links above are referral links. I may earn a commission if you make a purchase at no extra cost to you.

About Edward

Edward is a software engineer, author, and designer dedicated to providing the actionable blueprints and real-world tools needed to navigate a shifting economic landscape.

With a provocative focus on the evolution of technology—boldly declaring that “programming is dead”—Edward’s latest work, The Recession Business Blueprint, serves as a strategic guide for modern entrepreneurship. His bibliography also includes Mastering Blender Python API and The Algorithmic Serpent.

Beyond the page, Edward produces open-source tool review videos and provides practical resources for the “build it yourself” movement.

📚 Explore His Books – Visit the Book Shop to grab your copies today.

💼 Need Support? – Learn more about Services and the ways to benefit from his expertise.

🔨 Build it Yourself – Download Free Plans for Backyard Structures, Small Living, and Woodworking.