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 pricingRelated tutorials
How to create a systemd service for your app
Make your app start automatically and restart itself if it stops, with a systemd service.
Updated 7/20/2026Dev environmentsHow to keep sessions running after disconnect with tmux
tmux keeps your terminal sessions alive even after you close SSH, ideal for long-running tasks.
Updated 7/20/2026Dev environmentsHow to install PHP (multiple versions) and Composer
Install the PHP version your project needs, along with Composer for package management.
Updated 7/20/2026