标签:zha git mes 地址 tps vol 拉取 rest http
docker pull zookeeper
docker run --name="zookeeper" -p 2181:2181 -v /Users/zhangsan/docker/zookeeper/data:/data -v /Users/zhangsan/docker/zookeeper/datalog:/datalog -d 容器ID
docker pull registry.cn-hangzhou.aliyuncs.com/wkaca7114/zkui
备注:
zkui开源项目地址 https://github.com/DeemOpen/zkui
docker run --name="zkui" -p 9090:9090 --link zookeeper:zookeeper -e ZK_SERVER="zookeeper:2181" -d 镜像ID
version: ‘3.4‘
services:
zoo1:
image: zookeeper
container_name: zookeeper
restart: always
ports:
- 2181:2181
volumes:
- ~/docker/zookeeper/data:/data
- ~/data/zookeeper/datalog:/datalog
zkui:
image: registry.cn-hangzhou.aliyuncs.com/wkaca7114/zkui
container_name: zkui
ports:
- 9090:9090
depends_on:
- zoo1
links:
- zoo1
environment:
ZK_SERVER: zoo1:2181
标签:zha git mes 地址 tps vol 拉取 rest http
原文地址:https://www.cnblogs.com/wkaca7114/p/docker-zookeeper.html