MirrorNest
← Tutte le guide

Gitea

Lightweight, self-hosted Git service — a much smaller-footprint alternative to GitLab for teams that don't need its full DevOps suite.

Sistema: Any Docker hostDevOpsGit hostingSito ufficiale ↗Documentazione ufficiale ↗
Questa guida è redatta a partire dalla documentazione ufficiale di Gitea, linkata sopra — verifica sempre lì i nomi esatti di pacchetti/versioni prima di eseguire questi comandi su un server di produzione, poiché le versioni della distribuzione e del progetto cambiano nel tempo.
  1. 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 gitea
    cat > 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" EOF
    docker compose up -d
  2. 2Finish setup

    Open http://your-server-ip:3000 and complete the initial configuration wizard.