10 Sentinels Active
SENTINEL 01: [AEGIS] AUDITING POCKETBASE INFRASTRUCTURE...
Back to Self-Hosted Stacks
Gogs

Deploy Gogs

A painless self-hosted Git service written in Go. It aims to be the easiest, fastest, and most painless way of setting up a self-hosted Git service.

Quick Start

1

Create a directory

mkdir gogs-self-hosted && cd gogs-self-hosted
2

Create config file

Copy the content from the Config tab below into a file named docker-compose.yml

3

Deploy

docker compose up -d
Fast Track

Deploy Gogs in Minutes

Use our optimized Docker templates to deploy Gogs on any cloud provider. Get $200 in free credit to start on DigitalOcean.

Start with free creditDeploy on DigitalOcean
$200

Metadata

License
MIT
Language
Go
Last Updated
9/12/2026
Category
DevOps

Configuration

yaml


# -------------------------------------------------------------------------
# ๐Ÿš€ Created and distributed by The AltStack
# ๐ŸŒ https://thealtstack.com
# -------------------------------------------------------------------------

version: '3.8'

services:
  gogs:
    image: gogs/gogs:latest
    container_name: gogs
    restart: unless-stopped
    ports:
      - "3000:3000"
    environment:
      - USER=gogs
      - PASSWD=gogs
    volumes:
      - gogs_data:/data

volumes:
  gogs_data:

Community Notes

Help others by adding context, corrections, or warnings about this tool. Sign in to contribute.

No community notes yet. Be the first to add context.