Setting Up Gitea as a Self-Hosted Git Server
Requirements
Step 1: Install Docker
sudo apt-get update
sudo apt-get install -y docker.io docker-compose-v2
sudo systemctl enable --now dockerStep 2: Configure and Start Gitea
mkdir -p /opt/gitea
cd /opt/giteaecho 'SERVER_IP=192.168.1.100' > .envStep 3: Initial Setup
Step 4: Create a Repository
Step 5: Configure SSH Access (for clients)
Using a Dedicated Disk
Maintenance
Troubleshooting
SSH connection refused
Push rejected (protected branch)
Last updated
Was this helpful?
