Docker实现Dubbo跨主机通讯
ports:
# 前面为注册到注册中心的端口,后面为docker监听的端口
- "20882:20882"
environment: DUBBO_IP_TO_REGISTRY: 1.1.1.1 DUBBO_PORT_TO_REGISTRY: 20882 DUBBO_PORT_TO_BIND: 20882
DUBBO_IP_TO_REGISTRY --- 注册到注册中心的IP地址 DUBBO_PORT_TO_REGISTRY --- 注册到注册中心的端口 DUBBO_IP_TO_BIND --- 监听IP地址 DUBBO_PORT_TO_BIND --- 监听端口