-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
59 lines (59 loc) · 1.56 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
version: '2.2'
services:
elasticsearch7:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.9
container_name: elasticsearch7
environment:
- node.name=elasticsearch7
- discovery.seed_hosts=elasticsearch7node2
- cluster.initial_master_nodes=elasticsearch7,elasticsearch7node2
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- path.repo=/usr/share/dataBackup
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data
- ./dataBackup:/usr/share/dataBackup
ports:
- 9200:9200
networks:
- esnet
elasticsearch7node2:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.9
container_name: elasticsearch7node2
environment:
- node.name=elasticsearch7node2
- discovery.seed_hosts=elasticsearch7
- cluster.initial_master_nodes=elasticsearch7,elasticsearch7node2
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- path.repo=/usr/share/dataBackup
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata2:/usr/share/elasticsearch/data
- ./dataBackup:/usr/share/dataBackup
networks:
- esnet
kibana7:
image: docker.elastic.co/kibana/kibana:7.17.9
environment:
ELASTICSEARCH_HOSTS: http://elasticsearch7:9200
ports:
- 5601:5601
networks:
- esnet
volumes:
esdata1:
driver: local
esdata2:
driver: local
networks:
esnet: