gogs环境搭建
采用docker-compose方式:
/data/gogs/docker-yaml下创建docker-compose.yaml文件,内容如下:
version: "3"
volumes:
gogsdata:
services:
gogs:
image: gogs/gogs:0.12.10
container_name: gogs
volumes:
- gogsdata:/data
restart: always
ports:
- "10022:22"
- "10880:3000"
/data/gogs/docker-yaml下执行:
docker compose up -d
登录页面如:
192.168.1.19:10880
下方创建管理员账号即可。
标签:compose,gogs,环境,yaml,docker,data,搭建 From: https://www.cnblogs.com/JiaoTou/p/18304240