Gogs
Deploy Gogs(node2)
1 create gogs account
sudo adduser git
su git
cd /home/git
mkdir /home/git/.ssh
2 Download Gogs package
wget http://7d9nal.com2.z0.glb.qiniucdn.com/0.11.4/linux_amd64.tar.gz
3 unzip and move to the target directory
tar xf linux_amd64.tar.gz
mv gogs /usr/share/
cd /usr/share/gogs
4 init gogs database
cd /usr/share/gogs/scripts
mysql -u root -p < ./mysql.sql
mysql -u root -p
create user 'gogs'@'localhost' identified by 'admin123';
grant all privileges on gogs.* to 'gogs'@'localhost';
grant all privileges on gogs.* to 'gogs'@'172.17.%';
flush privileges;
exit;
5 gogs account data directory(node2)
/home/git/gogs
https://blog.mynook.info/post/host-your-own-git-server-using-gogs/