Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

wyntau/docker-ymfe-yapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Docker YApi

  • docker-compose.yml

    version: "3"
    services:
      mongo:
        image: mongo:3
        container_name: mongo
        networks:
          - yapi
        environment:
          - MONGO_INITDB_ROOT_USERNAME=yapi
          - MONGO_INITDB_ROOT_PASSWORD=yapi
          - MONGO_INITDB_DATABASE=yapi
        volumes:
          - ./mongo-data:/data/db
      yapi:
        image: wyntau/ymfe-yapi
        container_name: yapi
        depends_on:
          - mongo
        ports:
          - "3000:3000"
        networks:
          - yapi
        volumes:
          - ./config.json:/app/config.json
          - ./yapi-runtime:/app/runtime
    networks:
      yapi:
  • config.json

    {
      "port": "3000",
      "adminAccount": "[email protected]",
      "db": {
        "servername": "mongo",
        "DATABASE": "yapi",
        "port": 27017,
        "user": "yapi",
        "pass": "yapi",
        "authSource": "admin"
      }
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published