mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
update zookeeper
This commit is contained in:
parent
6d75118055
commit
0d6a5b9d90
@ -1,5 +1,5 @@
|
||||
kafka:
|
||||
image: wurstmeister/kafka:2.12-2.2.1
|
||||
image: wurstmeister/kafka:2.12-2.3.0
|
||||
ports:
|
||||
- "9092:9092"
|
||||
- "9999:9999"
|
||||
|
@ -1,5 +1,5 @@
|
||||
zookeeper:
|
||||
image: zookeeper:3.5.5
|
||||
image: zookeeper:3.5.6
|
||||
ports:
|
||||
- "2181:2181"
|
||||
- "2888:2888"
|
||||
@ -11,8 +11,10 @@ zookeeper:
|
||||
- /data/zookeeper/logs:/logs
|
||||
environment:
|
||||
- ZOO_MY_ID=1
|
||||
- ZOO_SERVERS=server.1=0.0.0.0:2888:3888;2181 server.2=zookeeper2:2888:3888;2181 server.3=zookeeper3:2888:3888;2181
|
||||
- ZOO_SERVERS=quorumListenOnAllIPs=true server.1=zookeeper1:2888:3888;2181 server.2=zookeeper2:2888:3888;2181 server.3=zookeeper3:2888:3888;2181
|
||||
- ZOO_LOG4J_PROP=INFO,ROLLINGFILE
|
||||
- ZOO_4LW_COMMANDS_WHITELIST=*
|
||||
- ZOO_STANDALONE_ENABLED=false
|
||||
extra_hosts:
|
||||
- zookeeper1:10.0.0.21
|
||||
- zookeeper2:10.0.0.22
|
||||
|
@ -20,6 +20,7 @@ zookeeper:
|
||||
- ./data/logs:/logs
|
||||
environment:
|
||||
- ZOO_LOG4J_PROP=INFO,ROLLINGFILE
|
||||
- ZOO_STANDALONE_ENABLED=true
|
||||
restart: always
|
||||
```
|
||||
|
||||
@ -28,6 +29,8 @@ zookeeper:
|
||||
```bash
|
||||
$ docker-compose up -d
|
||||
|
||||
$ docker-compose exec zookeeper cat /conf/zoo.cfg
|
||||
|
||||
$ docker-compose exec zookeeper zkServer.sh status
|
||||
ZooKeeper JMX enabled by default
|
||||
Using config: /conf/zoo.cfg
|
||||
|
@ -8,4 +8,5 @@ zookeeper:
|
||||
- ./data/logs:/logs
|
||||
environment:
|
||||
- ZOO_LOG4J_PROP=INFO,ROLLINGFILE
|
||||
- ZOO_STANDALONE_ENABLED=true
|
||||
restart: always
|
||||
|
Loading…
Reference in New Issue
Block a user