Skip to content

YApi 旨在为开发、产品、测试人员提供更优雅的接口管理服务。可以帮助开发者轻松创建、发布、维护 API

Notifications You must be signed in to change notification settings

tandaly/docker-yapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

官网

https://yapi.ymfe.org

docker镜像下载

https://dev.aliyun.com/list.html?namePrefix=tandaly/yapi

docker-compose.yml

version: "2"
services:
  mongo:
    image: mongo:3
    container_name: mongo
    privileged: true
    restart: always
    networks:
      - yapi
    environment:
      - MONGO_INITDB_ROOT_USERNAME=yapi
      - MONGO_INITDB_ROOT_PASSWORD=yapi
      - MONGO_INITDB_DATABASE=yapi
    volumes:
      - ./mongo-data:/data/db
  yapi:
    image: registry.cn-hangzhou.aliyuncs.com/tandaly/yapi
    container_name: yapi
    privileged: true
    restart: always
    depends_on:
      - mongo
    ports:
      - "8000:3000"
    networks:
      - yapi
    volumes:
      - ./config.json:/app/config.json
      - ./yapi-runtime:/app/runtime
networks:
  yapi:

config.json

{
  "port": "3000",
  "adminAccount": "[email protected]",
  "db": {
    "servername": "mongo",
    "DATABASE": "yapi",
    "port": 27017,
    "user": "yapi",
    "pass": "yapi",
    "authSource": "admin"
  }
}

操作

启动

docker-compose up -d

停止

docker-compose down

登录信息

访问地址:http://主机IP:8000

用户名:[email protected]

密码: ymfe.org

About

YApi 旨在为开发、产品、测试人员提供更优雅的接口管理服务。可以帮助开发者轻松创建、发布、维护 API

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published