-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (47 loc) · 1.57 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
version: '2.0'
services:
elasticsearch-central:
image: registry.cn-hangzhou.aliyuncs.com/ys_php/hb-es:last
container_name: es1
volumes:
- /pgman/docker-compose-es/node/es1/data:/usr/share/elasticsearch/data
- /pgman/docker-compose-es/node/es1/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- ES_CLUSTERNAME=elasticsearch
command: elasticsearch
ports:
- "9200:9200"
- "9300:9300"
networks:
- esnet
elasticsearch-data:
image: registry.cn-hangzhou.aliyuncs.com/ys_php/hb-es:last
container_name: es2
volumes:
- /pgman/docker-compose-es/node/es2/data:/usr/share/elasticsearch/data
- /pgman/docker-compose-es/node/es2/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- ES_CLUSTERNAME=elasticsearch
command: elasticsearch
ports:
- "9201:9200"
- "9301:9300"
networks:
- esnet
elasticsearch-head:
image: registry.cn-hangzhou.aliyuncs.com/ys_php/hb-head-es:last
container_name: head
volumes:
- /pgman/docker-compose-es/head/Gruntfile.js:/usr/src/app/Gruntfile.js
- /pgman/docker-compose-es/head/_site/app.js:/usr/src/app/_site/app.js
ports:
- "9100:9100"
networks:
- esnet
networks:
esnet:
external:
name: esnet