Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Build a YApi interface documentation tool in Docker

Shulou Source: shulou.com Published: 2022-06-02 11:07:41 10月04日 Update

Today, I will talk to you about building a YApi interface documentation tool in Docker, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

1. Docker environment is normal (the project relies on docker environment to build), download mongo

2. Download yapi dependent image

3. Initialize administrator accounts and services

Docker run-it-rm\-link mongo-yapi:mongo\-entrypoint npm\-workdir / api/vendors\ registry.cn-hangzhou.aliyuncs.com/anoy/yapi\ run install-server

4. Start the YApi service

Docker run-d\-- name yapi\-- link mongo-yapi:mongo\-- workdir / api/vendors\-p 3002 link mongo-yapi:mongo 3000\ registry.cn-hangzhou.aliyuncs.com/anoy/yapi\ server/app.js

5. Visit http://localhost:3002

After reading the above, do you have any further understanding of the documentation for building a YApi interface in Docker? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Tags: Content interfaces documents environment services tools more knowledge administrators articles industries accounts information information channels images projects channels one support related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Microsoft macOS Redmi Huawei