Back to Apps
Gitea

Deploy Gitea on Your Own Server

Gitea is a software package for hosting software development using Git as well as bug tracking, wikis and code review

πŸ“Š AnalyticsπŸ“ CMSπŸ› οΈ Developer Tools

Want to deploy Gitea on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.

Get Started

What is Gitea?

A painless self-hosted Git service. Gitea is a community managed fork of Gogs. Enter your Gitea Configuration parameters and click on next. A MySQL (database) and a Gitea container will be created for you. The process will take about a minute to finish.

Self-Host Gitea

Follow these steps to deploy on your own server.

1

Install Docker

Skip this step if Docker is already installed on your server.

curl -fsSL https://get.docker.com | sh
2

Configure

Customize the settings below. Defaults work for most cases.

General
3

Deploy

Copy the configuration and run it on your server.

services:
  gitea:
    image: gitea/gitea:1.21.1
    environment:
      DB_HOST: gitea-db:3306
      DB_PASSWD: 68d7c880b7
      DB_TYPE: mysql
      DB_USER: gitea
      RUN_MODE: prod
    volumes:
      - gitea-data:/data
    depends_on:
      - gitea-db
  gitea-db:
    image: mysql:8.0.32
    environment:
      MYSQL_DATABASE: gitea
      MYSQL_PASSWORD: 68d7c880b7
      MYSQL_ROOT_PASSWORD: 68d7c880b7
      MYSQL_USER: gitea
    volumes:
      - gitea-db-data:/var/lib/mysql
volumes:
  gitea-data: {}
  gitea-db-data: {}

Then run:

docker compose up -d
4

Access

Once started, access your app at http://localhost:3000

Why Self-Host Gitea?

Full Data Ownership

Your data stays on your servers. No third-party access.

No Monthly Fees

Pay only for your server. No per-seat or usage charges.

Complete Control

Customize, backup, and scale on your own terms.

Privacy & Compliance

Meet GDPR, HIPAA, or internal security requirements.

Technical Details

Docker Image

gitea/gitea:${gitea_version}

Want to go faster?

Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.

Install on any Linux server:

sh -c "$(curl -sSL https://get.senate.sh)"