Docker安装

yum install -y yum-utils
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin

Gitea部署

# 拉取最新版Gitea
docker pull gitea/gitea
# Docker启动
docker run -d --privileged=true --restart=always --name=gitea -p 20022:22 -p 20080:3000 -v /var/lib/gitea:/data gitea/gitea:latest

访问http://localhost:20080即可进行gitea配置