Comments (19)
我这儿的问题,等新版本
from docker-yapi.
docker-compose 你改了吧,把它发出来
from docker-yapi.
ersion: '3.7'
services:
yapi-web:
image: jayfong/yapi:latest
container_name: yapi-web
ports:
- 8082:3000
environment:
- [email protected]
- YAPI_ADMIN_PASSWORD=admin
- YAPI_CLOSE_REGISTER=true
- YAPI_DB_SERVERNAME=yapi-mongo
- YAPI_DB_PORT=27017
- YAPI_DB_DATABASE=yapi
- YAPI_DB_USER=mongo
- YAPI_DB_PASS=admin
- YAPI_MAIL_ENABLE=false
- YAPI_LDAP_LOGIN_ENABLE=false
- YAPI_PLUGINS=[{"name":"add-user"},{"name":"webhook"}]
volumes:
- ./data/yapi-vendors:/yapi/vendors
depends_on:
- yapi-mongo
restart: unless-stopped
yapi-mongo:
image: mongo:latest
container_name: yapi-mongo
volumes:
- yapi-data:/data/db
expose:
- 27017
restart: unless-stopped
volumes:
yapi-data:
from docker-yapi.
默认 MongoDB 是不用认证的,你把:
- YAPI_DB_USER=mongo
- YAPI_DB_PASS=admin
去掉试试。
from docker-yapi.
你把认证的去掉试试吧
from docker-yapi.
我这儿试了下,貌似是镜像的问题,在第二次启动时会一直处于尝试安装的状态
from docker-yapi.
大佬,还是不行
from docker-yapi.
使用 docker-compose pull yapi-web 重新拉取镜像,试下最新的
Sent with GitHawk
from docker-yapi.
还是卡在了尝试安装yapi
from docker-yapi.
1、删掉数据库认证环境变量;
2、在安装目录执行以下命令:
rm -rf ./data \
&& docker-compose pull yapi-web \
&& docker-compose down \
&& docker-compose up -d
from docker-yapi.
[email protected]
updated 2 packages in 0.924snpm run build-client
npm
ERR!
missing script: build-clientnpm
ERR! A complete log of this run can be found in:
npm
ERR! /root/.npm/_logs/2019-12-24T01_44_58_494Z-debug.log尝试安装 YApi...
关闭引导服务...
尝试启动 YApi...
(node:1) UnhandledPromiseRejectionWarning: Error: Cannot find module './vendors/server/app.js'
Require stack:
- /yapi/start.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:17)
at Function.Module._load (internal/modules/cjs/loader.js:859:27)
at Module.require (internal/modules/cjs/loader.js:1028:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Main.start (/yapi/start.js:323:9)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
from docker-yapi.
这次报错容器停止了
from docker-yapi.
把对 yapi-vendors 的映射删了
from docker-yapi.
怎么删?yapi-vendors是什么?
from docker-yapi.
这个删了:
volumes:
- ./data/yapi-vendors:/yapi/vendors
from docker-yapi.
好了,部署完成,如何但是我需要给mongo开启用户认证要怎么操作呢
from docker-yapi.
需要我新开个issue吗
from docker-yapi.
根本不需要开启,MongoDB 没有暴露在外的。如果需要开启,请搜索 docker MongoDB 相关
from docker-yapi.
好的我先自己试试,我把issue关了
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
- 找不到插件 HOT 4
- 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.