Lion Cipher Lab

Self-host your own Git server with Gitea and Docker

Why it matters

Knowing Git is one thing; understanding where your repositories actually live is another. Self-hosting a Git server strips the mystery out of "the remote" — you see with your own eyes that a remote is just a service on a machine, reachable over HTTPS or SSH, that stores your commits. That mental model pays off everywhere: debugging push and clone errors, setting up private repositories for work you can't put on a public host, and reasoning about who can reach a service you expose. Gitea makes it approachable because the entire server is one small open-source program that runs from a single…

What you'll learn

Steps in this lab

  1. Why self-host your code at all
  2. What you need before you start
  3. Launch Gitea in a container
  4. Finish setup and create your first user
  5. Create a repository and push to it over HTTPS
  6. Switch to SSH keys — the safer, password-free way to push
  7. Security basics: do not expose it unhardened, and back it up
  8. What you actually built — and why it matters

Open the full interactive lab →