Skip to main content

Gitea Application Guide

Gitea is a lightweight, self-hosted Git service written in Go. It provides a simple, fast, and painless way to set up a self-hosted code hosting solution.

Status: Available (Not Yet Tested)


Quick Reference

PropertyValue
Application IDgitea
CategoryVersion Control
Default Imagegitea/gitea:latest
Application Port3000
SSH Port22 (remapped to 2222)
Default CPU512 (Fargate)
Default Memory1024 MB (Fargate)
Default Instancet3.micro (EC2)
Health Check Path/
Health Check Grace300 seconds
Supports FargateYes
Supports EC2Yes
OIDC SupportNo (use ALB-OIDC)
Database RequiredNo (embedded SQLite)

Capabilities

  • Git repository hosting
  • Pull request workflow
  • Issue tracking
  • Wiki documentation
  • Organizations and teams
  • Webhooks
  • Git LFS support
  • Repository mirroring
  • Package registry (npm, Maven, Container, etc.)
  • Actions (CI/CD, GitHub Actions compatible)

Optional Ports

PortProtocolDirectionFeature FlagDescription
2222TCPInboundenableSshGit SSH

Example enabling SSH:

{
"enableSsh": true
}

Authentication

ModeStatusDescription
alb-oidcAvailableALB-level authentication
noneAvailableLocal accounts only

Note: Gitea supports OIDC natively but CloudForge integration is pending.


Storage Configuration

Container (Fargate)

PropertyValue
Data Path/data
EFS Path/gitea
Volume NamegiteaData
Container User1000:1000
EFS Permissions755

Deployment Context Examples

Development

{
"stackName": "Gitea-Dev",
"applicationId": "gitea",
"applicationName": "Gitea Dev",
"description": "Gitea development git server",
"environment": "development",

"runtime": "fargate",
"securityProfile": "dev",
"topology": "application-service",

"networkMode": "public-no-nat",
"region": "us-east-1",

"authMode": "none",

"cpu": 512,
"memory": 1024,

"enableSsh": true,

"enableMonitoring": true,
"logRetentionDays": "7"
}

Cost estimate: ~$30/month

Production

{
"stackName": "Gitea-Production",
"applicationId": "gitea",
"applicationName": "Gitea",
"description": "Production Gitea git server",
"environment": "production",

"runtime": "ec2",
"securityProfile": "production",
"topology": "application-service",

"domain": "example.com",
"subdomain": "git",
"enableSsl": true,

"networkMode": "private-with-nat",
"region": "us-east-1",

"authMode": "alb-oidc",
"cognitoAutoProvision": true,
"cognitoDomainPrefix": "gitea-prod-yourcompany",
"cognitoMfaEnabled": true,

"instanceType": "t3.small",
"minInstanceCapacity": 1,
"maxInstanceCapacity": 2,

"enableSsh": true,

"complianceFrameworks": "SOC2",
"awsConfigEnabled": true,
"wafEnabled": true,

"enableMonitoring": true,
"enableEncryption": true,
"logRetentionDays": "730",
"retainStorage": true
}

Cost estimate: ~$150/month


Post-Deployment Tasks

  1. Navigate to Gitea URL
  2. Complete initial setup wizard
  3. Create admin account
  4. Configure SSH (if enabled)
  5. Create organizations and repositories