-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.05 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
version: '3'
services:
elasticsearch1:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
container_name: node1
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es_node1:/usr/share/elasticsearch/data
ports:
- "9200:9200"
networks:
- es_net
elasticsearch2:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
container_name: node2
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=elasticsearch1"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es_node2:/usr/share/elasticsearch/data
networks:
- es_net
kibana:
image: docker.elastic.co/kibana/kibana:6.3.2
ports:
- "5601:5601"
networks:
- es_net
volumes:
es_node1: {}
es_node2: {}
networks:
es_net: {}