Favicon of Gogs

Gogs

Set up a simple, stable, and extensible self-hosted Git service with minimal effort. It's cross-platform, lightweight, and runs from a single binary.

Gogs is a project designed to provide a simple, stable, and extensible self-hosted Git service. The primary goal is to offer the most painless setup possible. Built with Go, it is distributed as an independent binary, ensuring it works across all platforms supported by the language, including Linux, macOS, Windows, and ARM-based systems.

Key features include:

  • Simple to install: Get started by running the binary or using a Docker container.
  • Cross-platform: Operates on any platform that the Go toolchain supports.
  • Lightweight: Requires very low resource consumption, capable of running on as little as 64 MiB of RAM and a fraction of a vCPU.
  • Open source: All source code is publicly available and has been MIT-licensed since 2014.

Directory Structure

gogs
gogs-data
postgres-data
.env
docker-compose.yml

docker-compose.yml

services:
  gogs:
    image: gogs/gogs:latest
    container_name: gogs
    ports:
      - "10080:3000"
      - "10022:22"
    volumes:
      - ./gogs-data:/data
    depends_on:
      - db
    restart: always

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

.env

POSTGRES_USER=gogs
POSTGRES_PASSWORD=your_super_secret_password
POSTGRES_DB=gogs
Categories:

Share:

Ad
Favicon

 

  
 

Similar to Gogs

Favicon

 

  
  
Favicon

 

  
  
Favicon