Giter VIP home page Giter VIP logo

gogs_dep's Introduction

gogs_dep

利用docker部署gogs
镜像公开端口
3000: http服务
2222: ssh服务

使用

# 下载镜像
docker pull index.alauda.cn/yonh/gogs_dep
# 启动镜像
docker run -d \
	-p 3000:3000 \
	-p 2222:2222 \
	index.alauda.cn/yonh/gogs_dep

# 访问localhost:3000进行安装

在云雀云上部署

步骤:
1.创建服务的时候,选择将3000/tcp,映射到http-endpoint,这样我们就可以直接访问web服务而不加端口号
2.启动服务后,会获得一个url地址,如http://gogs-yonh.myalauda.cn, 以及2222端口映射到的另一个端口,假设是22222
3.访问http://gogs-yonh.myalauda.cn 进入安装界面
4.更改设置,根据你的情况来输入
域名 => gogs-yonh.myalauda.cn
端口 => 80
应用url => http://gogs-yonh.myalauda.cn/
5.安装完毕
因为云雀云会将镜像公开的端口映射到另外的一些端口上,因此我们在使用ssh方式访问git的时候需要更改端口(见服务地址页)
如 git clone ssh://[email protected]:22222/yonh/gogs.git

gogs_dep's People

Contributors

yonh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.