![](https://i.bstu.cn/images/20240503/d6x44xl3p3sgyx0e.jpg)
gitea docker快速搭建
Published in -
24-05-22 03:09
# 前言
自建git服务器或团队使用,权限完善,支持git协议,可以选装runners服务器,运行类似Github Actions的ci
# 搭建
# 环境
docker
代理
nginx 或者 treafik
# docker-compose.yml
services:
gitea:
container_name: gitea
image: gitea/gitea:1.22-nightly-rootless
restart: always
# privileged: true
volumes:
- ./data:/var/lib/gitea
- ./config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000"
- "2222:2222"
networks:
- proxy
networks:
proxy:
external: true
# 启动
docker compose up -d
配置好代理后,打开配置的域名,创建一个项目即可
相关文章Woodpecker CI的使用
Prev
^_^ Be the first to comment.
Comment
Nickname
Email (Reply notice)
Website
Content (can use Markdown syntax)