# zookeeper 地址
zookeeper://zookeeper:2181

 

version: '3.4'
services:
  zk_server:
    image: zookeeper:3.4
    ports:
      - 2181:2181
  dubbo-admin:
    image: dubbo-admin:1.0
    links:
      - zk_server:zookeeper
    ports:
      - 7001:7001


# zk_server是服务名
# zookeeper是zk_server的别名 相当于hostname
# 应用程序通过zookeeper:2181访问