[{"data":1,"prerenderedAt":124},["ShallowReactive",2],{"seo-verification":3,"blog-heberger-gitea-en":6},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"id":7,"slug":8,"title":9,"excerpt":10,"readTime":11,"views":12,"isPinned":13,"publishedAt":14,"category":15,"categories":20,"featuredImage":22,"bgImage":23,"posterImage":24,"relatedSolution":25,"intro":28,"sections":29,"ctaTitle":75,"ctaBody":76,"ctaButton":77,"ctaUrl":78,"relatedPosts":79},74,"heberger-gitea","Host Gitea on your own VPS","Deploy Gitea on a VPS with Docker, reverse proxy and SSL. A lightweight, fast Git forge, 100% under your control.",7,538,false,"2026-04-07T00:00:00+00:00",{"id":11,"name":16,"slug":17,"color":18,"icon":19},"Self-hosting","self-hosting","bg-indigo-500\u002F10 text-indigo-400","cloud",[21],{"id":11,"name":16,"slug":17,"color":18,"icon":19},null,"\u002Fblog\u002Fcovers\u002Fbg.svg","\u002Fblog\u002Fcovers\u002Fheberger-gitea-poster.svg",{"categorySlug":26,"appSlug":27},"developpement","gitea","Gitea is a self-hosted Git forge written in Go, renowned for being lightweight and fast. Deploying it on your own VPS gives you a private GitHub with no per-user subscription and no limit on private repositories. Here is how to install it cleanly with Docker, a reverse proxy and an SSL certificate.",[30,34,44,47,69,72],{"type":31,"title":32,"body":33},"h2","Why self-host Gitea on a VPS","Gitea uses barely 200 to 300 MB of RAM at idle, making it one of the most efficient Git forges to self-host. On a VPS, you keep full control of your source code: no data is analyzed by a third party, no arbitrary limit on the number of private repositories or collaborators, and no cost that climbs with your team. For an agency or an independent developer in Morocco, a single VPS can host all client projects with permissions partitioned by organization. Gitea natively includes CI\u002FCD compatible with GitHub Actions workflows (Gitea Actions), a package registry and a web editor, which covers almost the entire development cycle with no external dependency.",{"type":35,"title":36,"items":37},"ul","Concrete benefits of a self-hosted Gitea",[38,39,40,41,42,43],"Minimal memory footprint: runs comfortably on a 2 GB RAM VPS even with several dozen users.","Unlimited private repositories with no per-seat billing, unlike SaaS offerings.","Gitea Actions built in to run your CI\u002FCD pipelines without an external service.","Package registry (Docker, npm, Composer, Maven) hosted on the same instance.","Fine-grained authentication: LDAP, OAuth2, personal access tokens and per-user SSH keys.","Trivial backup: everything fits in one data volume and a database.",{"type":31,"title":45,"body":46},"Hardware and software prerequisites","Gitea is very frugal. For a small team (up to 20 users), a VPS with 2 vCPU and 2 GB of RAM is more than enough; count on 4 GB if you enable Gitea Actions with local runners that compile code. Plan for at least 20 to 40 GB of SSD storage depending on the size of your repositories. On the software side: Docker Engine and the Docker Compose plugin installed, a domain name (or a subdomain such as `git.yourdomain.com`) pointing to the VPS IP via an A record, and port 22 reserved for the server's SSH — Gitea will expose its own SSH on another port to avoid the conflict.",{"type":48,"title":49,"steps":50},"steps","Deploy Gitea with Docker and SSL",[51,54,57,60,63,66],{"title":52,"body":53},"Prepare the VPS and Docker","Connect via SSH, update the system then install Docker and the Compose plugin. Create a dedicated directory: `mkdir -p \u002Fopt\u002Fgitea && cd \u002Fopt\u002Fgitea`. Also create a data volume that will survive container updates.",{"title":55,"body":56},"Write the docker-compose.yml","Define two services: `gitea` (image `gitea\u002Fgitea:latest`) and a `postgres:16` database. Mount `.\u002Fgitea:\u002Fdata` for persistence, set `USER_UID`\u002F`USER_GID` to 1000, and map Gitea's SSH to host port 2222: `\"2222:22\"`. Leave the HTTP port 3000 internal; it will be served by the reverse proxy.",{"title":58,"body":59},"Launch the containers","Run `docker compose up -d` then `docker compose logs -f gitea` to follow the initialization. Check that the connection to PostgreSQL succeeds before continuing.",{"title":61,"body":62},"Configure the reverse proxy","With Caddy, a single line is enough: `git.yourdomain.com { reverse_proxy localhost:3000 }`. Caddy automatically obtains and renews the Let's Encrypt certificate. With Nginx, create a `server` that proxies to `http:\u002F\u002F127.0.0.1:3000` and use `certbot --nginx` for SSL.",{"title":64,"body":65},"Finalize the web installation","Open `https:\u002F\u002Fgit.yourdomain.com`, complete the wizard by filling in the HTTPS base URL and the database host (`db:5432`). Set `ROOT_URL` correctly, otherwise the clone links will be wrong.",{"title":67,"body":68},"Secure repository SSH","Configure your clients to clone via `ssh:\u002F\u002Fgit@git.yourdomain.com:2222\u002F...`, or add a `Host` block in `~\u002F.ssh\u002Fconfig` to hide the port. Disable public sign-up in the admin if the instance is private.",{"type":70,"body":71},"tip","Enable Gitea Actions right from installation by adding `[actions] ENABLED = true` to `app.ini`, then register an `act_runner` runner in a separate container on the same VPS. Cap its RAM via `mem_limit` so that a heavy build does not choke Gitea itself. For heavy pipelines (compilation, integration tests), dedicate a second VPS to the runner instead and connect it with the registration token — you keep the forge responsive even during builds.",{"type":70,"title":73,"body":74},"The official documentation","For advanced configuration and options specific to the tool, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.gitea.com\" target=\"_blank\" rel=\"noopener noreferrer\">official Gitea documentation\u003C\u002Fa>. This guide covers going live on a VPS; the vendor's docs remain the reference for fine-tuning, major upgrades and specific use cases.","Deploy Gitea in minutes on a ServOrbit Cloud VPS","Our Cloud VPS, delivered with Docker preconfigured, lets you set up your Gitea forge with automatic SSL, without system tinkering. Dedicated resources, snapshots and a fixed IP included.","Launch my Cloud VPS","\u002Fvps-cloud",[80,93,106],{"id":81,"slug":82,"title":83,"excerpt":84,"readTime":11,"views":85,"isPinned":13,"publishedAt":86,"category":87,"categories":88,"featuredImage":22,"bgImage":23,"posterImage":90,"relatedSolution":91},75,"heberger-forgejo","Host Forgejo on your own VPS","Install Forgejo, the community fork of Gitea, on your VPS with Docker and SSL. A sovereign, 100% free Git forge.",575,"2026-04-06T00:00:00+00:00",{"id":11,"name":16,"slug":17,"color":18,"icon":19},[89],{"id":11,"name":16,"slug":17,"color":18,"icon":19},"\u002Fblog\u002Fcovers\u002Fheberger-forgejo-poster.svg",{"categorySlug":17,"appSlug":92},"forgejo",{"id":94,"slug":95,"title":96,"excerpt":97,"readTime":11,"views":98,"isPinned":13,"publishedAt":99,"category":100,"categories":101,"featuredImage":22,"bgImage":23,"posterImage":103,"relatedSolution":104},71,"heberger-nextcloud","Hosting Nextcloud on your own VPS","Take back control of your files: deploy Nextcloud on your VPS with Docker, database, reverse proxy and SSL.",2720,"2026-04-10T00:00:00+00:00",{"id":11,"name":16,"slug":17,"color":18,"icon":19},[102],{"id":11,"name":16,"slug":17,"color":18,"icon":19},"\u002Fblog\u002Fcovers\u002Fheberger-nextcloud-poster.svg",{"categorySlug":17,"appSlug":105},"nextcloud",{"id":107,"slug":108,"title":109,"excerpt":110,"readTime":111,"views":112,"isPinned":13,"publishedAt":113,"category":114,"categories":119,"featuredImage":22,"bgImage":23,"posterImage":121,"relatedSolution":122},43,"deployer-nodejs-vps","Deploy a Node.js Application on a VPS","Deploy a Node.js application to production on a VPS: PM2, Nginx reverse proxy, Let's Encrypt SSL, and automatic startup at boot.",8,591,"2026-05-08T00:00:00+00:00",{"id":115,"name":116,"slug":26,"color":117,"icon":118},4,"Development","bg-warning\u002F10 text-warning","dev",[120],{"id":115,"name":116,"slug":26,"color":117,"icon":118},"\u002Fblog\u002Fcovers\u002Fdeployer-nodejs-vps-poster.svg",{"categorySlug":26,"appSlug":123},"nodejs",1785628437521]