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

results matching ""

    No results matching ""