Introduction

Gitea is a self-hosted Git service and DevOps platform written in Go. It is lightweight and easy to install. This tutorial will guide you through the process of installing Gitea using Docker on Debian 12.

Prerequisites

Before you begin, ensure you have:

  1. A Debian 12 server or desktop system
  2. Docker installed on Debian 12. If not installed, you can follow this guide: Docker Installation Guide for Debian.

Step 1: Pull Gitea Docker Image

Run the following command to pull the Gitea Docker image:

sudo docker pull gitea/gitea:latest

Step 2: Create Docker Volume

Create a Docker volume for persistent data storage:

sudo docker volume create gitea-data

Step 3: Run Gitea Docker Container

Run the Gitea Docker container with the following command:

sudo docker run -d --name=gitea -p 3000:3000 -v gitea-data:/data gitea/gitea:latest

Step 4: Access Gitea Web Interface

Open a web browser and navigate to http://your_server_ip:3000 to access the Gitea web interface.

Step 5: Configure Gitea

Follow the on-screen instructions to complete the initial setup of Gitea. You will need to provide details such as database settings, site configuration, and administrative user credentials.

Conclusion

Congratulations! You have successfully installed Gitea DevOps Platform using Docker on Debian 12. You can now use Gitea for version control and collaboration on your projects.

Was this answer helpful? 0 Users Found This Useful (0 Votes)