Git Product home page Git Product logo

docker-yapi's Introduction

docker-yapi

使用docker部署Yapi (https://yapi.ymfe.org/index.html) Based on: https://github.com/dangerous1990/docker-yapi

安装YApi

  1. 克隆本项目到目标服务器
  2. 按照项目需求修改yapi/config.json, 具体配置方式参考:https://yapi.ymfe.org/devops/index.html
  3. 手动构建yapi镜像 yapi/build.sh
  4. 使用docker-compose运行, 将自动初始化超级用户 [email protected] / ymfe.org

git clone https://github.com/linkinghack/docker-yapi.git

cd docker-yapi/yapi && chmod +x build.sh && ./build.sh

cd .. 
docker-compose up -d 

配置Nginx

在nginx-conf目录下 yapi-proxy.conf 文件中配置主机名称、和证书位置。 使用nginx官方docker镜像时把上述配置文件映射到了*/etc/nginx/conf.d/default.conf*,解决因为默认80端口监听导致自动跳转443失败的问题。

生成本地自签名证书:

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout localhost.key -out localhost.crt -config certificate.conf

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.