docker-compose-nacos.yml
services:
nacos:
network_mode:host
image:nacos/nacos-server:latest
container_name:nacos
restart:always
volumes:
-./nacos/conf/application.properties:/home/nacos/conf/application.properties
cat./nacos/conf/application.properties
#dbmysql
spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://内网
ip:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&aut
oReconnect=true
db.user=root
db.password=xxx
Nacos安装
最新推荐文章于 2024-07-11 20:43:30 发布