-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-elasticsearch.yml
65 lines (65 loc) · 1.75 KB
/
docker-compose-elasticsearch.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
services:
elasticsearch-master:
image: elasticsearch:8.5.3
container_name: elasticsearch-master
environment:
- "ES_JAVA_OPTS=-Xss512k -XX:NewRatio=1 -Xms1024m -Xmx1024m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./elasticsearch/master/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./elasticsearch/master/data:/usr/share/elasticsearch/data
- ./elasticsearch/master/logs:/usr/share/elasticsearch/logs
- ./elasticsearch/master/plugins:/usr/share/elasticsearch/plugins
ports:
- "9200:9200"
- "9300:9300"
networks:
- net-es
elasticsearch-slave:
image: elasticsearch:8.5.3
container_name: elasticsearch-slave
environment:
- "ES_JAVA_OPTS=-Xss512k -XX:NewRatio=1 -Xms1024m -Xmx1024m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./elasticsearch/slave/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./elasticsearch/slave/data:/usr/share/elasticsearch/data
- ./elasticsearch/slave/logs:/usr/share/elasticsearch/logs
ports:
- "9201:9201"
- "9301:9301"
networks:
- net-es
depends_on:
- elasticsearch-master
kibana:
image: kibana:8.5.3
container_name: kibana
environment:
- SERVER_NAME=kibana-server
- ELASTICSEARCH_HOSTS=http://elasticsearch-master:9200
- I18N_LOCALE=zh-CN
ports:
- "5601:5601"
networks:
- net-es
depends_on:
- elasticsearch-master
elasticvue:
image: cars10/elasticvue:1.0.4
container_name: elasticvue
ports:
- "18080:8080"
networks:
- net-es
depends_on:
- elasticsearch-master
networks:
net-es:
driver: bridge