Sign inSign up

cuigh/yapi

By cuigh

•Updated almost 8 years ago

Image for [YApi](https://github.com/YMFE/yapi)

Image
0

1.2K

cuigh/yapi repository overview

⁠Docker image for YApi⁠

⁠Config

Config file must be mounted at /app/config.json in container. Here is an example config file.

{
  "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": "*****"
    }
  }
}

⁠Initialize

You must initialize the YApi before you run it for the first time.

docker run -ti --rm -v $PWD/yapi.json:/app/config.json cuigh/yapi:v1.3.17 /app/yapi/server/install.js

⁠Run

docker run -ti --rm -v $PWD/yapi.json:/app/config.json -p 3000:3000 cuigh/yapi:v1.3.17

Tag summary

Content type

Image

Digest

Size

65.8 MB

Last updated

almost 8 years ago

docker pull cuigh/yapi