Docker 部署Nacos
1-下载镜像
docker pull nacos/nacos-server
2-启动镜像(由于测试,此处不做持久化到mysql)
docker-compose
version: '3'
services:
nacos:
image: nacos/nacos-server
container_name: nacos
restart: always
ports:
- "8848:8848"
- "9848:9848"
- "9555:9555"
environment:
- PREFER_HOST_MODE=hostname
- MODE=standalone
3-web页面访问(初始用户名密码均为: nacos)
192.168.0.20:8848/nacos