---
title: "Gitea template"
description: "Git hosting with its own PostgreSQL database."
path: "/templates/gitea/"
---

# Gitea

Git hosting with its own PostgreSQL database.

One command creates the Gitea app and a PostgreSQL database, then connects them. Repository data stays on a disk. SSH is off. The app gets a public address.

## Install

Run it in the environment you want. The command waits until the public address responds.

```
dflow templates:install gitea
```

One app, one PostgreSQL database, and a disk.

## Application

- Name: gitea
- Image: docker.gitea.com/gitea:28.4.0
- Port: 3000
- Replicas: 1
- Memory: 512 Mi
- Disk: 1Gi at /data
- Address: Public route

## Database

- Name: gitea-db
- Engine: PostgreSQL
- Database: gitea
- Storage: 1Gi

## How they connect

- The database host, name, user, and password come from gitea-db.
- SSH is turned off.