Home Catalog Gitea
Developer

Gitea

A painless, self-hosted Git service written in Go with repository management, code review, issues, and wikis.

ARM64 & AMD64
Docker & Rootless Podman
100% Self-Hosted (Zero Lock-in)
RAM Profile: Low
Default Port: Port 3000

Why this Configuration?

Quick Start (Standalone Docker Compose)

The snippet below is immediately ready to run in any standard Docker or Podman environment:

services:
  gitea:
    image: "gitea/gitea:latest"
    container_name: njorddeploy-gitea
    restart: unless-stopped
    environment:
      - "USER_UID=1000"
      - "USER_GID=1000"
      - "GITEA__database__DB_TYPE=sqlite3"
      - "GITEA__database__PATH=/data/gitea/gitea.db"
      - "GITEA__server__DOMAIN=127.0.0.1"
      - "GITEA__server__SSH_PORT=2222"
      - "GITEA__server__ROOT_URL=http://127.0.0.1:3000/"
      - "GITEA__server__HTTP_PORT=3000"
    volumes:
      - "./data/gitea/data:/data"
      - "/etc/timezone:/etc/timezone:ro"
      - "/etc/localtime:/etc/localtime:ro"
    ports:
      - "3000:3000"
      - "2222:22"
    networks:
      - njorddeploy_net

networks:
  njorddeploy_net:

Start the service directly via the command line: docker compose up -d

Configuration & Environment Variables

Key configuration parameters and defaults derived from the NjordDeploy component template:

Variable Default Value Description
GITEA_WEB_PORT 3000 Port for the Gitea web interface.
GITEA_SSH_PORT 2222 Port for Git operations over SSH.
HOST_IP 127.0.0.1 IP address or domain name of the host.

Ecosystem & Enterprise Integration

Effortless Management with NjordDeploy

Deploy, monitor, and update this service with a single click on your own hardware via the NjordDeploy Configurator.