Code Monkey home page Code Monkey logo

yapi-docker's Introduction

yapi-docker

开箱即用,可配置的yapi

使用

docker pull xldou/yapi-docker
  • 需要挂在一个目录到 /yapi

    • 此目录包含一个config.json的文件来初始化配置yapi
    • 此目录会生成一个init.lock文件来标志是第一次初始化系统,还是关机后正常启动
  • config.json配置项解读

    此文件直接继承yapi的config.json,构建时会复制此文件到yapi目录下,请正确查看并配置

    {
    "port": "3000",
    "adminAccount": "[email protected]",
    "db": {
        "servername": "127.0.0.1",
        "DATABASE": "yapi",
        "port": 27017,
        "user": "test1",
        "pass": "test1",
        "authSource": ""
    },
    "mail": {
        "enable": true,
        "host": "smtp.163.com",
        "port": 465,
        "from": "***@163.com",
        "auth": {
        "user": "***@163.com",
        "pass": "*****"
        }
    }
    }
  • 升级版本提示:只要yapi官方数据库结构不变,你的mongo库还在,init.lock文件有,那就放心更新版本,本库也会跟着yapi版本发布新的版本,谢谢使用

  • 日志文件夹/api/vendors/log,如需保存日志文件请挂载到外部

  • 如有疑问或者见解请联系github/xldou

yapi-docker's People

Contributors

webxujw avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.