1. 首页
  2. 云计算
  3. Docker
  4. Yapi镜像插件Docker Compose.yaml

Yapi镜像插件Docker Compose.yaml

上传者: 2023-03-10 13:38:17上传 ZIP文件 296.45MB 热度 21次

以下是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
用户评论