-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (74 loc) · 1.75 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '2.4'
x-zookeeper:
&zookeeper-env
JVMFLAGS: -Dzookeeper.4lw.commands.whitelist=ruok
ZOO_ADMINSERVER_ENABLED: 'true'
ZOO_STANDALONE_ENABLED: 'false'
ZOO_SERVERS: server.1=zookeeper1:2888:3888;2181 server.2=zookeeper2:2888:3888;2181 server.3=zookeeper3:2888:3888;2181
x-server:
&server-env
ZOOKEEPER_CONNECTION: zookeeper1:2181,zookeeper2:2181,zookeeper3:2181
BASE_PATH: /myservices
SERVICE_NAME: test
services:
zookeeper1:
image: artifactory.rd2.thingworx.io/zookeeper:3.6.3
restart: always
ports:
- 2181:2181
- 8090:8080
healthcheck:
test: echo ruok | nc localhost 2181 | grep imok
interval: 15s
environment:
<<: *zookeeper-env
ZOO_MY_ID: 1
zookeeper2:
image: artifactory.rd2.thingworx.io/zookeeper:3.6.3
restart: always
ports:
- 2182:2181
- 8091:8080
healthcheck:
test: echo ruok | nc localhost 2181 | grep imok
interval: 15s
environment:
<<: *zookeeper-env
ZOO_MY_ID: 2
zookeeper3:
image: artifactory.rd2.thingworx.io/zookeeper:3.6.3
restart: always
ports:
- 2183:2181
- 8092:8080
healthcheck:
test: echo ruok | nc localhost 2181 | grep imok
interval: 15s
environment:
<<: *zookeeper-env
ZOO_MY_ID: 3
server1:
image: curator-test:0.0.2
environment:
<<: *server-env
SERVER: 1
server2:
image: curator-test:0.0.2
environment:
<<: *server-env
SERVER: 2
server3:
image: curator-test:0.0.2
environment:
<<: *server-env
SERVER: 3
server4:
image: curator-test:0.0.2
environment:
<<: *server-env
SERVER: 4
server5:
image: curator-test:0.0.2
environment:
<<: *server-env
SERVER: 5