← All guides
Gitea
Lightweight, self-hosted Git service — a much smaller-footprint alternative to GitLab for teams that don't need its full DevOps suite.
This guide is synthesized from Gitea's own official documentation, linked above — always cross-check exact package/version names there before running these commands on a production server, since distro and project versions move over time.
1Run with Docker Compose
Gitea's own docs recommend Docker Compose over a single docker run so the app and its database start together.
mkdir gitea && cd giteacat > docker-compose.yml <<EOF version: "3" services: server: image: gitea/gitea:latest environment: - USER_UID=1000 - USER_GID=1000 volumes: - ./data:/data ports: - "3000:3000" - "222:22" EOFdocker compose up -d2Finish setup
Open http://your-server-ip:3000 and complete the initial configuration wizard.