通过dokcer-compose快速进行Nacos服务搭建,也可以使用docker镜像通过run指令进行部署,缺点就是麻烦点、配置比较零散
- 拉取docker-compose对应的git仓库
git clone --depth 1 https://github.com/nacos-group/nacos-docker.git
- 运行
cd nacos-docker
docker-compose -f example/standalone-derby.yaml up -d
-
运行成功
-
访问
http://192.168.2.154:8848/nacos
![](https://img.haomeiwen.com/i8387919/4348788e3c2ed695.png)
- 访问prometheus/grafana监控
http://192.168.2.154:3000
http://192.168.2.154:9090
![](https://img.haomeiwen.com/i8387919/f094a295e89bfa1f.png)
![](https://img.haomeiwen.com/i8387919/26a8c60eeae08cc0.png)
![](https://img.haomeiwen.com/i8387919/e158b709fbb12eec.png)
- 参考
网友评论