本篇内容主要讲解“Docker-compose怎么部署Yapi”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“docker-compose怎么部署Yapi”吧!1 安装dockersudo&nbs
本篇内容主要讲解“Docker-compose怎么部署Yapi”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“docker-compose怎么部署Yapi”吧!
sudo 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-cesystemctl start docker
curl -L https://get.daocloud.io/docker/compose/releases/download/1.29.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-composechmod +x /usr/local/bin/docker-compose
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: - 27017
docker-compose up -d # 启动docker-compose stop # 停止docker-compose rm # 删除
http://127.0.0.1:3000/输入邮箱:123@qq.com输入密码:admin
到此,相信大家对“docker-compose怎么部署Yapi”有了更深的了解,不妨来实际操作一番吧!这里是编程网网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!
--结束END--
本文标题: docker-compose怎么部署Yapi
本文链接: https://lsjlt.com/news/326572.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0