gitea
If you want to host Git repositories on your desktop or server, then give Gitea a try.
Create a new directory.
mkdir gitea
cd gitea
To install, just use Docker Compose to keep it simple.
Create a docker-compose.yml file and add the following code below.
networks:
gitea:
external: false
services:
server:
image: docker.gitea.com/gitea:1.25.3
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- gitea
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
Start Gitea. You will be asked to create a new Gitea account and password.
docker compose up -d
Once Gitea is up and running, access it using a web browser via link below.
http://localhost:3000
If you have a port conflict, you can modify the port to another.
Create a new repository. Clone it or perform a remote add origin.