-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (48 loc) · 893 Bytes
/
docker-compose.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
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.4'
services:
zookeeper:
image: zookeeper:3.7.0
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
volumes:
- "./zookeeper/data:/data"
- "./zookeeper/logs:/datalog"
ports:
- "2181:2181"
network_mode: "host"
node1:
build: .
container_name: node1
command: "9001"
depends_on:
- zookeeper
ports:
- "9001:9001"
network_mode: "host"
node2:
build: .
container_name: node2
command: "9002"
depends_on:
- zookeeper
ports:
- "9002:9002"
network_mode: "host"
node3:
build: .
container_name: node3
command: "9003"
depends_on:
- zookeeper
ports:
- "9003:9003"
network_mode: "host"
node4:
build: .
container_name: node4
command: "9004"
depends_on:
- zookeeper
ports:
- "9004:9004"
network_mode: "host"