theNetworkChuck/gitea-guide
Über uns
Companion guide to NetworkChuck's self-hosted GitHub (Gitea) video: install, push your code, connect AI agents, mirror to GitHub, lock it down.
Design und MedienGemessener Sternzuwachs
- in 24h
- +1
- in 7 days
- Verlauf wird gesammelt
- in 15 days
- Verlauf wird gesammelt
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalYou need to self-host GitHub RIGHT NOW!!
The companion guide to the NetworkChuck video.
Put your own GitHub (Gitea) on a server you control, push your code to it, hand issues to an AI agent (cloud and local), mirror it to GitHub, and lock the whole thing down. Every command, in the order the video runs them (one step moved earlier so you skip an error).
▶ Watch the video: you need to self-host Github RIGHT NOW!!
What is Gitea?
Gitea is a free, open source GitHub you run yourself. Repos, issues, pull requests, code review, a web page that looks a lot like GitHub, all on a server you own. When GitHub goes down, you don't. Microsoft doesn't hold your code. You do.
It's the second half of the Git video. There we built a little repo called Git Good (a web page and a zombie story) and put it on GitHub. Here it moves to a Git server we own. Never watched that one? Any folder of code works. You can follow along with whatever you've got.
What you'll build
flowchart LR
you["<b>Your computer</b><br/>the gitgood folder"]
gitea[("<b>Gitea</b><br/>on your server<br/>the remote, named origin")]
agent["<b>Your AI agent</b><br/>Claude Code, cloud or local model"]
gh[("<b>GitHub</b><br/>a mirror")]
you -- "git push (SSH, port 222)" --> gitea
agent -- "reads issues, opens PRs<br/>(Gitea MCP server)" --> gitea
gitea -- "push mirror,<br/>every commit" --> gh
The path
Follow it in order. The times are where each part starts in the video.
| # | Chapter | Video | What you'll do |
|---|---|---|---|
| 1 | Get a server | 1:46 | A Hostinger VPS (or a VM in your home lab) running Ubuntu, and your first SSH login |
| 2 | Install Gitea | 3:48 | Docker, Gitea's own compose file plus one override file, HTTPS from Let's Encrypt, the setup page |
| 3 | Use it yourself | 8:41 | Make a repo, give Gitea your SSH key, make Gitea your origin, push |
| 4 | Connect your AI agent | 13:31 | A bot account, a token, the Gitea MCP server in Claude Code, and the issue → PR → merge loop |
| 5 | Do it again with local AI | 18:09 | Same loop, with a model running on your own computer through Ollama |
| 6 | Mirror to GitHub | 18:46 | Every push to Gitea shows up on GitHub by itself |
| 7 | Lock it down | 21:33 | SSH keys only, a firewall, 2FA on Gitea, plus backups and updates |
| 8 | Troubleshooting | Every error hit while filming, and the fix |
Short on time? The cheat sheet has every command on one page.
Before you start
- A server. A cloud VPS or a VM at home, fresh Ubuntu. The video uses a Hostinger VPS (KVM 2). Anything that runs Docker should work.
- A terminal on your own computer. Mac, Linux, or Windows PowerShell.
- Git and a repo to move in. The Git video's guide builds one, or use any project folder.
- An AI coding agent for chapters 4 and 5. The video uses Claude Code. Any agent that can use MCP servers works; the add-a-server command is different for each.
- A GitHub account only for chapter 6, and only if you want the mirror.
[!NOTE] Filmed on Gitea 28.2.0, Ubuntu 26.04 LTS, Docker Compose, gitea-mcp 1.11.0 (October 2026). Rechecked November 2026 against Gitea 28.4.0 and gitea-mcp 1.13.0: same files, same steps. The video was filmed on a Mac. Where Windows needs a different command, the guide says so.
[!TIP] Everywhere you see
YOUR-SERVER, put your server's address (Hostinger's looks likesrv1234567.hstgr.cloud). Everywhere you seeYOUR-USERNAME, put your Gitea username. Don't copy Chuck's.
Files in this repo
| File | What it is |
|---|---|
examples/.env.example |
The three settings Gitea needs (database password, address, email) |
examples/docker-compose.override.yml |
Our changes to Gitea's compose file: passwords, HTTPS, ports. Cloud servers |
examples/docker-compose.override.homelab.yml |
The same for a home lab server that isn't on the internet (no HTTPS) |
Links
- 🌐 Gitea: about.gitea.com
- 📖 Gitea docs, install with Docker: docs.gitea.com/installation/install-with-docker
- 🛠️ Gitea MCP server: gitea.com/gitea/gitea-mcp
- 🛠️ Docker on Ubuntu: docs.docker.com/engine/install/ubuntu
- 🛠️ Ollama (local AI): ollama.com
- 📖 The Git guide (part one): github.com/theNetworkChuck/git-guide
Sponsor
The video was sponsored by Hostinger. A Hostinger VPS is a home lab in the cloud: always on, its own public address, and room for Gitea plus whatever else you want to self-host (your AI agents included). Chapter 1 walks through buying one.
Get a Hostinger VPS and use coupon code NETWORKCHUCK for an extra discount: hostinger.com/networkchuckbf
License
This guide is MIT licensed. Gitea, the Gitea MCP server, Docker, Ollama and Claude Code are separate projects with their own licenses.
Ähnliche Projekte entdecken
Wird geladen…