Favicon of Gitea

Gitea

Deploy a painless, all-in-one Git service on your own servers. Manage code hosting, reviews, team collaboration, package registries, and CI/CD.

Gitea offers a fast, easy, and painless way to set up a self-hosted Git service. As a lightweight application written in Go, it runs on all major platforms supported by the language, including Linux, macOS, and Windows. This makes it an incredibly versatile and efficient solution for development teams.

It provides an all-in-one software development service that consolidates essential tools into a single platform. You gain full control over your workflow with a comprehensive feature set:

  • Git Hosting: Securely host and manage your source code repositories.
  • Code Review: Facilitate collaborative code reviews with pull requests and inline commenting.
  • Team Collaboration: Manage users, organizations, and access permissions with a simple interface.
  • Package Registry: Host your own private or public package registries for various package managers.
  • CI/CD: Automate your build, test, and deployment pipelines directly within the platform.

Directory Structure

gitea
gitea-deployment
gitea-config
gitea-data
postgres-data
.env
docker-compose.yml

docker-compose.yml

services:
  server:
    image: gitea/gitea:latest-rootless
    container_name: gitea
    restart: always
    environment:
      - GITEA__database__DB_TYPE=postgres
      - GITEA__database__HOST=db:5432
      - GITEA__database__NAME=gitea
      - GITEA__database__USER=gitea
      - GITEA__database__PASSWD=${GITEA_DB_PASSWORD}
    volumes:
      - ./gitea-data:/var/lib/gitea
      - ./gitea-config:/etc/gitea
    ports:
      - "3000:3000"
      - "2222:2222"
    depends_on:
      - db

  db:
    image: postgres:14
    container_name: gitea-db
    restart: always
    environment:
      - POSTGRES_USER=gitea
      - POSTGRES_PASSWORD=${GITEA_DB_PASSWORD}
      - POSTGRES_DB=gitea
    volumes:
      - ./postgres-data:/var/lib/postgresql/data

.env

GITEA_DB_PASSWORD=your_super_secret_database_password
Categories:

Share:

Ad
Favicon

 

  
 

Similar to Gitea

Favicon

 

  
  
Favicon

 

  
  
Favicon