Published

Gitea

Self-hosted Git service with pull requests, issues, a package registry and GitHub-compatible CI (Gitea Actions). Ships as a single Go binary/container with SQLite, PostgreSQL or MySQL as its database.

Resources by load level

What the app itself needs at each level, next to what we recommend for a server that runs only this app.

LevelWhat it meansApp requirementsRecommended
LightEstimateUp to 10 users, 100 repositories, 10 GB of Git and LFS data; occasional pushes and web browsing.3 vCPU · 2 GiB RAM · 16.1 GiB disk3.72 vCPU · 3.9 GiB RAM · 28.06 GiB disk
MediumEstimateUp to 50 users, 500 repositories, 50 GB of Git and LFS data; daily pushes, pull requests and code search.5 vCPU · 3 GiB RAM · 53.4 GiB disk6.12 vCPU · 5.1 GiB RAM · 70.955 GiB disk
HeavyEstimateUp to 200 users, 2,000 repositories, 200 GB of Git and LFS data; continuous pushes, mirrors and API traffic.9 vCPU · 5 GiB RAM · 193.1 GiB disk10.92 vCPU · 7.5 GiB RAM · 231.61 GiB disk

Recommended = app requirements + system baseline + safety headroom, under sizing policy 2026.10.0. Options stay at their defaults. “Estimate” means the sources give no number for that case, so it is worked out from them by the method stated under Components. How the numbers are built

Size it in the Stack Sizer

Need a server for this? Look for at least 3.72 vCPU / 3.9 GiB RAM

Based on the Recommended figure for Light load above, which includes system baseline and safety headroom.

ANAROQ is in development and doesn't sell servers. These are some options for renting a server, in no particular order.

Regular links, not affiliate links. ANAROQ earns nothing from them. Providers are not ranked. How ANAROQ may earn from links

Ready-to-run files

Support level Run-tested

Compose template verified by a run on the current profile version.

Create docker-compose

Components

What each component needs at each load level, before baseline and headroom.

vCPU / GiB RAM / GiB disk
ComponentLightMediumHeavySources
Gitea server (app)2 / 1 / 9.64 / 2 / 46.98 / 4 / 186.6[2][8]
PostgreSQL (database)———
Gitea Runner (act_runner) (worker)———
How the estimates are worked out
  • Gitea server · Light: vCPU/RAM: the documented small-team figure (2 CPU cores, 1 GB RAM), GB taken as GiB. Disk: 0.25 GiB image (72 MB compressed × 3, rounded up) + 10 GB data (9.313 GiB), rounded up.
  • Gitea server · Medium: Documented small-team figure (2 CPU cores, 1 GB RAM) × 2 for 5× the users of light. Disk: 0.25 GiB image (72 MB compressed × 3) + 50 GB data (46.566 GiB), rounded up.
  • Gitea server · Heavy: Documented small-team figure (2 CPU cores, 1 GB RAM) × 4 for 20× the users of light. Disk: 0.25 GiB image (72 MB compressed × 3) + 200 GB data (186.265 GiB), rounded up.
  • database · PostgreSQL: Embedded metadata DB with the image's default config: equals the PostgreSQL profile's light preset (≤ 5 GB data, ≤ 20 concurrent connections) at every load level. Light preset method: shared_buffers 25% of RAM, worst-case work_mem/maintenance_work_mem budget, 0.5 GiB image + 5 GiB data + 1 GiB WAL.
  • actions-runner · Gitea Runner (act_runner): Gitea publishes no runner sizing. One job (default capacity: 1) sized like GitHub's standard Linux runner for private repos (2 CPU, 8 GB RAM = 7.451 GiB, 14 GB SSD = 13.039 GiB), since Gitea Actions runs GitHub-style workflows; runner image 19 MB compressed fits the rounding.

Options that change resources

database

Database engine. SQLite runs inside the Gitea container (no extra service) but upstream warns it does not scale and that converting later is not well tested; PostgreSQL adds a separate container.

Default: postgres

actions-runner

Run one Gitea Runner (act_runner) next to Gitea for Gitea Actions CI, using the host Docker daemon and the default capacity of 1 concurrent job.

Default: off

  • When on: Gitea Runner (act_runner) +2 vCPU · +7.5 GiB RAM · +13.1 GiB disk [10][11][13][14]

Ports

Public ports are meant to be reached from outside the stack, usually through a reverse proxy; internal ones stay on the stack's own network.

ComponentPortExposurePurposeSources
Gitea server3000/tcpPublic, through a proxyWeb UI, API and Git over HTTP(S) (behind a reverse proxy)[3]
Gitea server22/tcpPublic, through a proxyGit over SSH (rootful image; usually published on host port 222 or 2222)[3]
PostgreSQL5432/tcpInternal onlyPostgreSQL for Gitea (db:5432 on the Compose network)[3]

Every port in the catalog, with conflicts between apps

User and permissions (UID/GID)

The user each container's process runs as, and the paths it writes to. A bind mount for one of these paths must be writable by that UID:GID.

ComponentUID:GIDUserStarts as rootWrites toSources
Gitea server1000:1000gitYes, prepares its directories, then drops to this user/data[3][22][23][24][25][26]
PostgreSQL999:999postgresYes, prepares its directories, then drops to this user/var/lib/postgresql/var/run/postgresql[33][34]
Gitea Runner (act_runner)0:0rootNo/data[10][32]
  • Gitea server: The rootful image starts as root: the entrypoint remaps the git user to USER_UID/USER_GID (default 1000:1000), s6 runs the setup that chowns /data/gitea and /data/git, then su-exec starts gitea web as git. sshd for Git over SSH stays root inside the container. With a bind mount, match its owner to USER_UID/USER_GID.
  • PostgreSQL: postgres:18.6 is the 18/trixie build. docker-entrypoint.sh starts as root, chowns PGDATA (/var/lib/postgresql/18/docker under the /var/lib/postgresql volume) and /var/run/postgresql to postgres, then re-executes itself with gosu postgres.
  • Gitea Runner (act_runner): The basic gitea/runner variant sets no USER: tini runs run.sh as root, which keeps the registration state in /data. Jobs run as containers on the Docker daemon whose socket is mounted. The dind-rootless variant runs as the rootless user instead.

Permission denied on a mount? Get the exact check and chown for this app

Storage growth

How much each component's data grows per month at each load level, on top of the disk in the profile. A value marked Assumption is ANAROQ's stated assumption, not a figure from the sources; the notes say what it rests on.

GiB per month
ComponentLightMediumHeavySources
Gitea serverAssumption0.3881.947.761
What the growth figures rest on
  • Gitea server: No upstream growth figure: repositories, LFS objects, attachments and packages are kept until deleted. Assumed the preset's 10 GB (9.313 GiB) of Git and LFS data took 24 months to accumulate and keeps growing at that average pace. Measure the /data volume and replace this with the real rate.
  • Gitea server: No upstream growth figure: repositories, LFS objects, attachments and packages are kept until deleted. Assumed the preset's 50 GB (46.566 GiB) of Git and LFS data took 24 months to accumulate and keeps growing at that average pace. Measure the /data volume and replace this with the real rate.
  • Gitea server: No upstream growth figure: repositories, LFS objects, attachments and packages are kept until deleted. Assumed the preset's 200 GB (186.265 GiB) of Git and LFS data took 24 months to accumulate and keeps growing at that average pace. Measure the /data volume and replace this with the real rate.

Upgrade and rollback

How to move to a new version safely, and how to go back if it fails.

Back up first

Stop Gitea, then back up the database (pg_dump for PostgreSQL), app.ini and the data files under /data, plus any external storage such as S3; a volume snapshot also works. [5][27]

Upgrade steps

  1. Read the breaking changes in the release posts on blog.gitea.com and clear any deprecated-setting warnings shown in Site Administration; unresolved ones can stop the next version from starting. [27]
  2. Stop Gitea and back up the database, app.ini and the /data volume. [5][27]
  3. Change the pinned image tag in the Compose file, then run docker compose pull and docker compose up -d. [3]
  4. On first start Gitea migrates the database automatically; it is unavailable until that finishes, so watch the logs. [27]
  5. Keep PostgreSQL on its pinned major version: it does not upgrade its data directory itself, and a newer major needs pg_upgrade or a dump and restore. [3]

Roll back

Patch versions with the same first two fields (a.b.x) share the database structure. After a minor or major upgrade the database is migrated and cannot run on the older Gitea: restore the backup and the previous image tag. [27]

Known breaking changes

  • In 28.0.0: Self-registration is off unless [service] DISABLE_REGISTRATION = false is set, and [server] DOMAIN is ignored: the instance and SSH domain now come from ROOT_URL. Version numbers drop the 1. prefix. [28]
  • In 28.0.0: Migrations, mirrors and other Git network operations go through an internal proxy with new egress rules ([migrations]/[security] EGRESS_MODE); invalid BLOCKED_HOST_LIST entries stop Gitea from starting. Review allow/block lists first. [28]
  • In 28.0.0: Completed Actions runs, with their logs and artifacts, are deleted after 400 days by default (RUN_RETENTION_DAYS); set it to 0 before upgrading to keep them. Git 2.25 or newer is required. [28]
  • In 1.27.0: Reusable workflows are resolved by Gitea, and external ones referenced by URL are no longer supported; release artifacts are signed with sigstore instead of GPG; inline scripts need the CSP nonce. [29]

Limits

  • SQLite does not scale and converting to another database later is not well tested: choose PostgreSQL up front if the instance may grow. [4]
  • Default upload limits: 50 MB per file uploaded through the web UI, 100 MB per issue/PR attachment, 2048 MB per release attachment; LFS file size is unlimited by default. [6]
  • The runner's figures cover one concurrent job; raising capacity multiplies them, and jobs run as containers on the host Docker daemon, outside the runner container. [9][11]

Security

  • Finish the web installer immediately: until INSTALL_LOCK is set the installation page stays reachable. Keep DISABLE_REGISTRATION=true (the default) so only admins create accounts. [3][6]
  • Publishing container port 22 exposes Git-over-SSH; map it to a non-standard host port (e.g. 222) so it does not collide with the host's own sshd, or disable SSH if only HTTPS is needed. [3][6]
  • The basic runner image mounts the host Docker socket: jobs can see the host's other containers and read the registration token. Run only trusted workflows, or use the dind image. [10]
  • Never lose or change SECRET_KEY after installation (stored in /data/gitea/conf/app.ini): encrypted data can no longer be decrypted. [3]

Backup

  • Back up the whole /data volume: repositories, attachments, avatars, LFS, indexers, app.ini and the SQLite file when SQLite is used. [3][5]
  • `gitea dump` (run via docker exec as the git user) packs repos, data, config and an SQL dump into a zip; stop Gitea during the backup for consistency. [5]
  • With PostgreSQL, prefer pg_dump over the XORM SQL dump inside gitea dump; restore is manual (move files back, restore the database dump). [5]

Latest release

Newest upstream release
Gitea 28.1.0 [7][30]
This profile was checked against

Gitea 28.1.0

This profile was checked against the newest release.

Checked on
13 Oct 2026
State
Checked within the last 90 days
Where releases are published
GitHub Releases

Latest releases of every app

Version

Profile status
Published
Checked against release
Gitea 28.1.0
Profile version
1.1.0
Figures verified
10 Oct 2026
Catalog release
2026.10.10
Sizing policy
2026.10.0
Compose file
Verified on 12 Oct 2026
Official site
about.gitea.com
Alternatives
Forgejo

Sources

  1. Docker Docs: Control startup order in Compose (pg_isready healthcheck, service_healthy) (Official docs · read 11 Oct 2026)
  2. Gitea docs: What is Gitea? (System Requirements) (Official docs · read 10 Oct 2026)
  3. Gitea docs: Installation with Docker (docker-compose.yml, SQLite/PostgreSQL) (Official Compose · read 10 Oct 2026)
  4. Gitea docs: Database Preparation (Official docs · read 10 Oct 2026)
  5. Gitea docs: Backup and Restore (Official docs · read 10 Oct 2026)
  6. Gitea docs: Configuration Cheat Sheet (Official docs · read 10 Oct 2026)
  7. Gitea blog: Gitea 28.1.0 is released (2026-10-06) (Release notes · read 10 Oct 2026)
  8. Docker Hub: gitea/gitea tag 28.1.0 (compressed image sizes) (Official repository · read 10 Oct 2026)
  9. Gitea docs: Gitea Runner (requirements and execution modes) (Official docs · read 10 Oct 2026)
  10. Gitea docs: Gitea Runner, Install with Docker (Official docs · read 10 Oct 2026)
  11. Gitea docs: Gitea Runner example configuration (capacity, labels) (Official docs · read 10 Oct 2026)
  12. Gitea Runner v5.0.0 release notes (Release notes · read 10 Oct 2026)
  13. Docker Hub: gitea/runner tag 5.0.0 (compressed image sizes) (Official repository · read 10 Oct 2026)
  14. GitHub Docs: GitHub-hosted runners reference (standard runner specs) (Official docs · read 10 Oct 2026)
  15. PostgreSQL 18 documentation: 19.4 Resource Consumption (Official docs · read 10 Oct 2026)
  16. PostgreSQL 18 documentation: 19.3 Connections and Authentication (Official docs · read 10 Oct 2026)
  17. PostgreSQL 18 documentation: 19.10 Vacuuming (autovacuum settings) (Official docs · read 10 Oct 2026)
  18. PostgreSQL 18 documentation: 19.5 Write Ahead Log (max_wal_size) (Official docs · read 10 Oct 2026)
  19. PostgreSQL 18 documentation: 51.2 How Connections Are Established (Official docs · read 10 Oct 2026)
  20. Docker Official Image postgres: documentation (docker-library/docs) (Official docs · read 10 Oct 2026)
  21. Docker Hub: library/postgres tag 18.6 (compressed image sizes) (Official repository · read 10 Oct 2026)
  22. Gitea Dockerfile at v28.1.0 (git user 1000:1000, s6, su-exec, VOLUME /data) (Official repository · read 13 Oct 2026)
  23. Gitea docker/root/usr/bin/entrypoint at v28.1.0 (USER_UID/USER_GID remap the git user) (Official repository · read 13 Oct 2026)
  24. Gitea docker/root/etc/s6/gitea/setup at v28.1.0 (chown of /data/gitea and /data/git) (Official repository · read 13 Oct 2026)
  25. Gitea docker/root/etc/s6/gitea/run at v28.1.0 (su-exec $USER gitea web) (Official repository · read 13 Oct 2026)
  26. Gitea docker/root/etc/s6/openssh/run at v28.1.0 (sshd runs as root) (Official repository · read 13 Oct 2026)
  27. Gitea docs: Upgrade from an old Gitea (backup for downgrade, automatic migrations) (Official docs · read 13 Oct 2026)
  28. Gitea blog: Gitea 28.0.0 is released (major breaking changes) (Release notes · read 13 Oct 2026)
  29. Gitea blog: Gitea 1.27.0 is released (major breaking changes) (Release notes · read 13 Oct 2026)
  30. Docker Hub tag list gitea/gitea (28.1.0 newest stable on 2026-10-13) (Official repository · read 13 Oct 2026)
  31. Gitea Cloud: fully managed Gitea by CommitGo, Inc. (about.gitea.com) (Official docs · read 13 Oct 2026)
  32. Gitea Runner Dockerfile at v5.0.0 (basic variant: no USER, tini, VOLUME /data) (Official repository · read 13 Oct 2026)
  33. docker-library/postgres 18/trixie Dockerfile (postgres user 999:999, VOLUME /var/lib/postgresql) (Official repository · read 13 Oct 2026)
  34. docker-library/postgres 18/trixie docker-entrypoint.sh (chown, then gosu postgres) (Official repository · read 13 Oct 2026)

All self-hosted apps