安装篇-安装gogs
YML
version: '2.3'
services:
mysql:
image: mysql:5.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=gogs
volumes:
- ./data/mysql:/var/lib/mysql
- ./data/conf:/etc/mysql/conf.d
gogs:
image: gogs/gogs:0.12
restart: always
ports:
- "11022:22"
- "11080:3000"
volumes:
- ./data/gogs:/data
links:
- mysql
depends_on:
- mysql
Web页面配置安装
- 登录 ip:11080
- 2.数据库配置
- 3.应用基本设置
1、设置域名
2、设置SSH端口号,为11022(可不设)
- 4.设置管理员账号