forked from jbianquetti-nami/bitnami-docker-zookeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-cluster.yml
41 lines (39 loc) · 1000 Bytes
/
docker-compose-cluster.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: '2'
services:
zookeeper:
image: docker.io/bitnami/zookeeper:3.7
ports:
- '2181'
volumes:
- zookeeper_data:/bitnami
environment:
- ZOO_SERVER_ID=1
- ALLOW_ANONYMOUS_LOGIN=yes
- ZOO_SERVERS=zookeeper:2888:3888,zookeeper2:2888:3888,zookeeper3:2888:3888
zookeeper2:
image: docker.io/bitnami/zookeeper:3.7
ports:
- '2181'
volumes:
- zookeeper2_data:/bitnami
environment:
- ZOO_SERVER_ID=2
- ALLOW_ANONYMOUS_LOGIN=yes
- ZOO_SERVERS=zookeeper:2888:3888,zookeeper2:2888:3888,zookeeper3:2888:3888
zookeeper3:
image: docker.io/bitnami/zookeeper:3.7
ports:
- '2181'
volumes:
- zookeeper3_data:/bitnami
environment:
- ZOO_SERVER_ID=3
- ALLOW_ANONYMOUS_LOGIN=yes
- ZOO_SERVERS=zookeeper:2888:3888,zookeeper2:2888:3888,zookeeper3:2888:3888
volumes:
zookeeper_data:
driver: local
zookeeper2_data:
driver: local
zookeeper3_data:
driver: local