Docker部署nacos
代码语言:javascript
复制docker run -d -p 30048:8848 -e MODE=standalone -e SPRING_DATASOURCE_PLATFORM=mysql -e MYSQL_SERVICE_HOST=10.0.34.84 -e MYSQL_SERVICE_PORT=14000 -e MYSQL_SERVICE_DB_NAME=nacos -e MYSQL_SERVICE_USER=root -e MYSQL_SERVICE_PASSWORD=root -e JVM_XMS=1g -e JVM_XMX=1g -e JVM_XMN=512m nacos/nacos-server:latest
- 官方文档和环境变量说明 https://nacos.io/zh-cn/docs/quick-start-docker.html
- 注意:需要先导入mysql脚本(https://github.com/alibaba/nacos/blob/develop/distribution/conf/nacos-mysql.sql)
Rancher2部署nacos