-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
96 lines (86 loc) · 1.75 KB
/
docker-compose.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
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
85
86
87
88
89
90
91
92
93
94
95
96
version: '2.4'
x-build: &build
build: .
x-memory: &memory
ulimits:
memlock:
soft: -1
hard: -1
x-discovery: &discovery
links:
- discovery
services:
discovery:
<<: *build
<<: *memory
mem_limit: 512M
environment:
ES_NODE_NAME: discovery-$${HOSTNAME}
ES_DISCOVERY_ZEN_PING_UNICAST_HOSTS: localhost
ES_RAM_PERCENTAGE: 25
master:
<<: *build
<<: *memory
<<: *discovery
depends_on:
- discovery
mem_limit: 512M
environment:
ES_NODE_NAME: master-$${HOSTNAME}
ES_NODE_MASTER: 'true'
ES_DISCOVERY_ZEN_PING_UNICAST_HOSTS: discovery
ES_RAM_PERCENTAGE: 25
volumes:
- esmaster:/usr/share/elasticsearch/data
data:
<<: *build
<<: *memory
<<: *discovery
depends_on:
- discovery
mem_limit: 658M
environment:
ES_NODE_NAME: data-$${HOSTNAME}
ES_NODE_DATA: 'true'
ES_DISCOVERY_ZEN_PING_UNICAST_HOSTS: discovery
ES_RAM_PERCENTAGE: 40
volumes:
- esdata:/usr/share/elasticsearch/data
client:
<<: *build
<<: *memory
<<: *discovery
depends_on:
- discovery
mem_limit: 658M
environment:
ES_NODE_NAME: client-$${HOSTNAME}
ES_DISCOVERY_ZEN_PING_UNICAST_HOSTS: discovery
ES_HTTP_CORS_ENABLED: 'true'
ES_RAM_PERCENTAGE: 40
ports:
- '9200'
kibana:
image: docker.elastic.co/kibana/kibana:6.8.21
ports:
- '5601'
depends_on:
- client
mem_limit: 1792M
links:
- 'client:elasticsearch'
cerebro:
image: lmenezes/cerebro
ports:
- '9000'
depends_on:
- client
cpu_shares: 4049
mem_limit: 256M
environment:
JAVA_OPTS: "-XshowSettings:vm -Xmx64m"
volumes:
esmaster:
driver: local
esdata:
driver: local