nacos修改了下配置,又报错了?
version: "3.5" #修改为实际的版本
services:
nacos1:
hostname: nacos1
image: nexus.dfsoft.com.cn:10001/dfsoft-nacos:v2.2.3 #修改为实际的镜像地址
volumes:
- ./nacos_logs/nacos1:/home/nacos/logs
- ./nacos_data/nacos1:/home/nacos/data
ports:
- "8851:8848"
- "9555:9555"
environment:
MODE: cluster
JVM_XMS: 1024m
JVM_XMX: 1024m
JVM_XMN: 256m
NACOS_AUTH_ENABLE: 'true'
PREFER_HOST_MODE: hostname
EMBEDDED_STORAGE: embedded
NACOS_SERVERS: nacos1:8848 nacos2:8848 nscos3:8848
NACOS_AUTH_TOKEN: SecretKey155037278141550372781415503727814155037278141550372781415503
NACOS_AUTH_IDENTITY_KEY: dfsoft
NACOS_AUTH_IDENTITY_VALUE: df@~1q2w3e4r
networks:
- nacos_net #修改为实际的docker网桥
deploy:
placement:
constraints:
- node.id == kck4csj5d6yoirlaux22szldb #根据实际情况修改
nacos2:
hostname: nacos2
image: nexus.dfsoft.com.cn:10001/dfsoft-nacos:v2.2.3 #修改为实际的镜像地址
volumes:
- ./nacos_logs/nacos2:/home/nacos/logs
- ./nacos_data/nacos2:/home/nacos/data
ports:
- "8849:8848"
environment:
MODE: cluster
JVM_XMS: 1024m
JVM_XMX: 1024m
JVM_XMN: 256m
NACOS_AUTH_ENABLE: 'true'
PREFER_HOST_MODE: hostname
EMBEDDED_STORAGE: embedded
NACOS_SERVERS: nacos1:8848 nacos2:8848 nscos3:8848
NACOS_AUTH_TOKEN: SecretKey155037278141550372781415503727814155037278141550372781415503
NACOS_AUTH_IDENTITY_KEY: dfsoft
NACOS_AUTH_IDENTITY_VALUE: df@~1q2w3e4r
networks:
- nacos_net #修改为实际的docker网桥
deploy:
placement:
constraints:
- node.id == kck4csj5d6yoirlaux22szldb #根据实际情况修改
nacos3:
hostname: nacos3
image: nexus.dfsoft.com.cn:10001/dfsoft-nacos:v2.2.3 #修改为实际的镜像地址
volumes:
- ./nacos_logs/nacos3:/home/nacos/logs
- ./nacos_data/nacos3:/home/nacos/data
ports:
- "8850:8848"
environment:
MODE: cluster
JVM_XMS: 1024m
JVM_XMX: 1024m
JVM_XMN: 256m
NACOS_AUTH_ENABLE: 'true'
PREFER_HOST_MODE: hostname
EMBEDDED_STORAGE: embedded
NACOS_SERVERS: nacos1:8848 nacos2:8848 nscos3:8848
NACOS_AUTH_TOKEN: SecretKey155037278141550372781415503727814155037278141550372781415503
NACOS_AUTH_IDENTITY_KEY: dfsoft
NACOS_AUTH_IDENTITY_VALUE: df@~1q2w3e4r
networks:
- nacos_net #修改为实际的docker网桥
deploy:
placement:
constraints:
- node.id == kck4csj5d6yoirlaux22szldb #根据实际情况修改
networks:
nacos_net:
external: true能不能看看我的yml文件有没有问题?
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。