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:
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: alwaysPOSTGRES_USER=gogs
POSTGRES_PASSWORD=your_super_secret_password
POSTGRES_DB=gogsAuto-fetched about 22 hours ago
Auto-fetched about 22 hours ago