Comments (13)
再仔细看了看逻辑,目前不可以,除非你手动改 Dockerfile
提前安装插件,还要改 start.js
禁止运行时安装插件。
from docker-yapi.
我想请教下,yapi的这些插件,是否依赖于config.js的配置。
是否可以在修改Dockerfile中,添加npm install interface-oauth2-token gitlab-oauth2,就可以了,即使我在config.json没有添加具体的配置信息
from docker-yapi.
在重新启动的时候,node可以检测到已经有了某些插件的依赖包,直接读取config配置就行了
from docker-yapi.
可以这样吗
from docker-yapi.
yapi 没有插件自动发现机制的,必须在配置文件定义。
from docker-yapi.
那就悲剧了
from docker-yapi.
from docker-yapi.
在start.js中将安装插件的逻辑去掉,config.js还是照样配置,可行吗
from docker-yapi.
哎,你这么一说,可以把容器内部的 /yapi
目录挂载出来,这样重新运行时,安装会很快的。
from docker-yapi.
这样试试,其他不用动,改 docker-compose.yml
,yapi-web
加上:
volumes:
- ./data/yapi:/yapi
from docker-yapi.
好吧,这些是一种方案
肯定可以的,就跟本地启动源代码一样
from docker-yapi.
更新:有问题,请勿使用!
嗯嗯,优化下:
volumes:
- ./data/yapi-vendors:/yapi/vendors
from docker-yapi.
只能这样了
from docker-yapi.
Related Issues (20)
- 不能运行
- 设置YAPI_DB_USER、YAPI_DB_PASS之后,yapi-web运行报错
- 设置YAPI_DB_USER、YAPI_DB_PASS之后,yapi-web运行报错 HOT 2
- yapi-plugin-qsso 登录按钮不显示
- 无法上传postman json数据更新
- yapi-mongo exited HOT 2
- 您的CI挂了,导致dockerhub推送失败 HOT 3
- 更新不了,最新版本是1.10.2而不是1.20,在docker hub查询也是1.10.2 HOT 1
- 1.12.0 漏洞修复,镜像未更新成功 HOT 11
- 数据迁移重新部署后提示 等待 mongodb
- 登陆报504
- 该用户不存在
- 插件安装不了
- 增加内置插件
- yapi-mongo 的数据是一值存在吗
- 高级Mock保存不了
- 能不能给一个配置登录 MongoDB 服务的用户名和密码的docker-compose.yml啊 HOT 1
- 没互联网怎么安装
- Error: EROFS: read-only file system, mkdir '/sys/fs/cgroup/cpu/safeify' HOT 1
- 请问脚本怎么写
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-yapi.