CloudLinux.ro
Dev environments

How to self-host your own Git with Gitea

Updated 7/20/2026

Gitea is a lightweight Git server you run yourself, with a web interface, pull requests and user management, without depending on GitHub.

1. Install with one click

Simplest, pick Gitea from the app catalog when creating the server.

Or manually with Docker

docker run -d --name gitea -p 3000:3000 -p 222:22 \
  -v gitea_data:/data \
  gitea/gitea:latest

2. Initial setup

Go to http://SERVER_IP:3000 and follow the install steps. Choose the database (SQLite for simple, PostgreSQL for production).

3. Add a domain and HTTPS

Put a reverse proxy in front and a free SSL certificate.

4. Your first repository

You create a repo from the interface, add your SSH key and clone:

git clone [email protected]:user/project.git

Backup

The gitea_data volume holds all your code and configuration. Back it up regularly to a Backup Box. Continue with deploying with git push.

Put this guide into practice on your own VPS

EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.

See pricing

Related tutorials