Docker-install-Gogs

gitlab类似仓库Gogs

Gogs内存占用小

部署脚本docker-compose.yml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
version: '3'

services:
gogs:
restart: always
image: gogs/gogs
ports:
- "14080:3000"
- "14022:22"
volumes:
- /dockerdata/v-gogs:/data
deploy:
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints: [node.hostname == xuanps]

第一次运行需要初始化,网页里面设置见Application

后面可以通过脚本/dockerdata/v-gogs/gogs/conf/app.ini修改所有配置

github:gogs/gogs

app.ini配置文档

镜像仓库设置