Ryan-Miao / docker-yapi

Docker build and run yapi as service
288 stars 115 forks source link

第一次部署失败,在mongo数据库初始化的时候 #12

Open heping945 opened 3 years ago

heping945 commented 3 years ago

`依赖库安装完成,正在初始化数据库mongodb...

yapi-vendor@1.9.2 install-server /my-yapi/vendors > node server/install.js Error: /my-yapi/vendors/server/utils/commons.js:25 jsf.extend('mock', function () { ^ TypeError: jsf.extend is not a function at Object. (/my-yapi/vendors/server/utils/commons.js:25:5) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (/my-yapi/vendors/server/install.js:3:17) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47 `

yunxiaoyang01 commented 3 years ago

@heping945 你好,你的问题解决了吗?我也有这个问题

dadafrank commented 2 years ago

@heping945 你好,你的问题解决了吗?我也有这个问题

不要用他的mongo!!! 首先你将docker-compose.yml里的 ` mongo: image: mongo:4 restart: always environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_PASSWORD: example MONGO_INITDB_DATABASE: yapi volumes:

`depends_on:

noovertime7 commented 2 years ago

我也用到了,换了个版本就好了