本来想使用gitlab,不过搭建好了以后,发现资源占用太高,后来重新搭建了gitea(https://gitea.com/)。gitea官方提供了比较详悉的基于docker的搭建过程(https://docs.gitea.io/en-us/install-with-docker/)。
docker-compose.yml
version: "3"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:1.16.7
container_name: gitea
restart: always
networks:
- gitea
volumes:
- /docker/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "3022:22"
网友评论