# Gitea

> Lightweight Git hosting with issues and pull requests, backed by Postgres.

Lightweight Git hosting with issues and pull requests, backed by Postgres.

Gitea with repositories on a volume and metadata in Postgres. The first account you register becomes the administrator. SSH is off; clone over HTTPS.

## Deploy

On the canvas, select **+ Create**, then **Template**, then **Gitea**. Or run `5050 deploy --template gitea`.

## Services it creates

| Service | Image | Volume | Public domain |
|---|---|---|---|
| Postgres | `postgres:17.10-bookworm` | `/var/lib/postgresql/data` | no |
| Gitea | `gitea/gitea:1.27.3` | `/data` | yes |

## Inputs

| Input | Required | Default |
|---|---|---|
| `GITEA__security__SECRET_KEY`: Encrypts secrets Gitea stores, such as two-factor keys. | yes | generated: `secret(32)` |

The manifest is [templates/gitea/template.yaml](https://github.com/musakkka/5050cloud/blob/main/templates/gitea/template.yaml).

## Next steps

- [Templates reference](https://5050cloud.com/docs/reference/templates)
- [Backups and restore](https://5050cloud.com/docs/guides/backups)
