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

Self-Host Git with Forgejo + Podman
Self-Host Git with Forgejo + Podman

Live stream set for 2025-09-27 at 14:00:00 Eastern

Ask questions in the live chat about any programming or lifestyle topic.

This livestream will be on YouTube or you can watch below.

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 (affiliate) links. I may earn a commission if you purchase through them - at no extra cost to you.

About Edward

Edward is a software engineer, web developer, and author dedicated to helping people achieve their personal and professional goals through actionable advice and real-world tools.

As the author of impactful books including Learning JavaScript, Learning Python, Learning PHP, Mastering Blender Python API, and fiction The Algorithmic Serpent, Edward writes with a focus on personal growth, entrepreneurship, and practical success strategies. His work is designed to guide, motivate, and empower.

In addition to writing, Edward offers professional "full-stack development," "database design," "1-on-1 tutoring," "consulting sessions,", tailored to help you take the next step. Whether you are launching a business, developing a brand, or leveling up your mindset, Edward will be there to support you.

Edward also offers online courses designed to deepen your learning and accelerate your progress. Explore the programming on languages like JavaScript, Python and PHP to find the perfect fit for your journey.

📚 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.
🎓 Ready to Learn? – Check out his Online Courses to turn your ideas into results.

Leave a Reply

Your email address will not be published. Required fields are marked *