forked from blockchainvn/hyperledger-fabric-swarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhyperledger-zookeeper.yaml
57 lines (57 loc) · 1.59 KB
/
hyperledger-zookeeper.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3"
networks:
hyperledger-ov:
external:
name: hyperledger-ov
services:
zookeeper0:
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
hostname: zookeeper0
image: hyperledger/fabric-zookeeper:x86_64-1.1.0-preview
networks:
hyperledger-ov:
aliases:
- zookeeper0.agiletech.vn
environment:
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=hyperledger-ov
- ZOO_MY_ID=1
- ZOO_SERVERS=server.1=zookeeper0:2888:3888 server.2=zookeeper1:2888:3888 server.3=zookeeper2:2888:3888
zookeeper1:
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
hostname: zookeeper1
image: hyperledger/fabric-zookeeper:x86_64-1.1.0-preview
networks:
hyperledger-ov:
aliases:
- zookeeper1.agiletech.vn
environment:
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=hyperledger-ov
- ZOO_MY_ID=2
- ZOO_SERVERS=server.1=zookeeper0:2888:3888 server.2=zookeeper1:2888:3888 server.3=zookeeper2:2888:3888
zookeeper2:
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
hostname: zookeeper2
image: hyperledger/fabric-zookeeper:x86_64-1.1.0-preview
networks:
hyperledger-ov:
aliases:
- zookeeper2.agiletech.vn
environment:
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=hyperledger-ov
- ZOO_MY_ID=3
- ZOO_SERVERS=server.1=zookeeper0:2888:3888 server.2=zookeeper1:2888:3888 server.3=zookeeper2:2888:3888