Yapi镜像插件Docker Compose.yaml
以下是Yapi镜像插件的Docker Compose.yaml文件内容:
version: '3'
services:
yapi:
image: 'swoolecloud/yapi'
restart: always
mem_limit: 1g # 可调整
network_mode: bridge
environment:
TZ: Asia/Shanghai
NODE_ENV: production
MongoDB: mongodb://mongo:27017/yapi
YAPI_ADMIN_ACCOUNT: admin@admin.com # 可调整
YAPI_ADMIN_PASSWORD: 123456 # 可调整
ports:
- 3000:3000
depends_on:
- mongo
mongo:
image: 'mongo:3'
restart: always
mem_limit: 1g # 可调整
network_mode: bridge
volumes:
- /path/to/mongodb:/data/db
ports:
- 27017:27017
用户评论