How to self-host your own Git with Gitea
Updated 11/29/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 pricingRelated tutorials
Error tracking for your applications with GlitchTip
Catch production exceptions with the Sentry SDKs on a small server: the project, the DSN, alerts and uptime.
Updated 11/29/2026Dev environmentsTest your application's email with smtp4dev
Send the email from Laravel, WordPress, Node or Python to a test SMTP server and read it in a web inbox, without it ever reaching real customers.
Updated 11/29/2026Dev environmentsHow to set up a staging environment
Test changes on a copy of production before shipping them, to avoid surprises.
Updated 11/29/2026