1. docker + gogs

docker run --name gogs -d -p 10022:22 -p 10080:3000 --restart=always \
    -v ~/gogs:/data \
    gogs/gogs
  • github
git@github.com:snowdreams1006/snowdreams1006.github.io.git

https://github.com/snowdreams1006/snowdreams1006.github.io.git
  • gogs
git@ssh.snowdreams1006.cn:snowdreams1006/snowdreams1006.github.io.git

https://gogs.snowdreams1006.cn/snowdreams1006/snowdreams1006.github.io.git
./gogs cert -ca=true -duration=8760h0m0s -host=gogs.snowdreams1006.cn
docker cp gogs:$(docker exec gogs pwd)/cert.pem gogs/https
作者: 雪之梦技术驿站
链接: https://snowdreams1006.github.io/devops/docker-gogs.html
来源: 雪之梦技术驿站
本文原创发布于「雪之梦技术驿站」,转载请注明出处,谢谢合作!

https://snowdreams1006.github.io/snowdreams1006-wechat-open.png

© snowdreams1006 all right reserved,powered by Gitbook文件修订时间: 2020-02-18 23:27:51

results matching ""

    No results matching ""