Back to Self-Hosted Stacks
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
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.