-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
docker-compose.cluster.yml
78 lines (76 loc) · 2.06 KB
/
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
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
services:
es1:
image: docker.elastic.co/elasticsearch/elasticsearch:${VERSION:-7.14.0}
hostname: es1
environment:
- bootstrap.memory_lock=true
- cluster.name=elasticsearch
- cluster.initial_master_nodes=es1
- discovery.seed_hosts=es1
- cluster.routing.allocation.disk.threshold_enabled=false
- node.name=es1
- logger.org.elasticsearch=warn
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
ulimits:
nproc: 65536
nofile:
soft: 65536
hard: 65536
memlock:
soft: -1
hard: -1
# volumes:
# - ./data/elasticsearch:/usr/share/elasticsearch/data
ports:
- 9200:9200
es2:
image: docker.elastic.co/elasticsearch/elasticsearch:${VERSION:-7.14.0}
hostname: es2
environment:
- bootstrap.memory_lock=true
- cluster.name=elasticsearch
- cluster.initial_master_nodes=es1
- discovery.seed_hosts=es1
- cluster.routing.allocation.disk.threshold_enabled=false
- node.name=es2
- logger.org.elasticsearch=warn
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
ulimits:
nproc: 65536
nofile:
soft: 65536
hard: 65536
memlock:
soft: -1
hard: -1
# volumes:
# - ./data/elasticsearch:/usr/share/elasticsearch/data
ports:
- 9201:9200
es3:
image: docker.elastic.co/elasticsearch/elasticsearch:${VERSION:-7.14.0}
hostname: es3
environment:
- bootstrap.memory_lock=true
- cluster.name=elasticsearch
- cluster.initial_master_nodes=es1
- discovery.seed_hosts=es1
- cluster.routing.allocation.disk.threshold_enabled=false
- node.name=es3
- logger.org.elasticsearch=warn
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
ulimits:
nproc: 65536
nofile:
soft: 65536
hard: 65536
memlock:
soft: -1
hard: -1
# volumes:
# - ./data/elasticsearch:/usr/share/elasticsearch/data
ports:
- 9202:9200