In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "docker-compose how to deploy Yapi". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "docker-compose how to deploy Yapi"!
1 install dockersudo yum install -y yum-utils device-mapper-persistent-data lvm2sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.reposudo yum install docker-cesymctl start docker2 install docker-composiurl-L https://get.daocloud.io/docker/compose/releases/download/1.29.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-composichmod +x /usr/local/docker-compose3 newly built docker-compose.yml
vim docker-compose.yml
version: '3'services: yapi-web: image: liuqingzheng/yapi:latest container_name: yapi-web ports: - 3000:3000 environment: - YAPI_ADMIN_ACCOUNT=123@qq.com - YAPI_ADMIN_PASSWORD=admin - YAPI_CLOSE_REGISTER=true - YAPI_DB_SERVERNAME=yapi-mongo - YAPI_DB_PORT=27017 - YAPI_DB_DATABASE=yapi - YAPI_MAIL_ENABLE=false - YAPI_LDAP_LOGIN_ENABLE=false - YAPI_PLUGINS=[] depends_on: - yapi-mongo links: restart: unless-stopped yapi-mongo: image: mongo:latest container_name: yapi-mongo volumes: - ./ data/db:/data/db expose: - 270174 Start docker-compose up -d #Start docker-compose stop #Stop docker-compose rm #Delete 5 Visit http://127.0.0.1:3000/Enter Email: 123@qq.com Enter Password: admin
At this point, I believe everyone has a deeper understanding of "docker-compose how to deploy Yapi", so let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.