-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.opensearch.cluster.yml
48 lines (47 loc) · 1.88 KB
/
docker-compose.opensearch.cluster.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
services:
opensearch-node-mitopen-1:
extends:
file: docker-compose.opensearch.base.yml
service: opensearch
hostname: opensearch-node-mitopen-1
environment:
- "node.name=opensearch-node-mitopen-1"
- "discovery.seed_hosts=opensearch-node-mitopen-1,opensearch-node-mitopen-2,opensearch-node-mitopen-3"
- "cluster.initial_cluster_manager_nodes=opensearch-node-mitopen-1,opensearch-node-mitopen-2,opensearch-node-mitopen-3"
volumes:
- opensearch-cluster-data1:/usr/share/opensearch/data
ports:
- 9100:9200 # REST API
- 9500:9600 # Performance Analyzer
opensearch-node-mitopen-2:
extends:
file: docker-compose.opensearch.base.yml
service: opensearch
hostname: opensearch-node-mitopen-2
environment:
- "node.name=opensearch-node-mitopen-2"
- "discovery.seed_hosts=opensearch-node-mitopen-1,opensearch-node-mitopen-2,opensearch-node-mitopen-3"
- "cluster.initial_cluster_manager_nodes=opensearch-node-mitopen-1,opensearch-node-mitopen-2,opensearch-node-mitopen-3"
volumes:
- opensearch-cluster-data2:/usr/share/opensearch/data
ports:
- 9101:9200 # REST API
- 9501:9600 # Performance Analyzer
opensearch-node-mitopen-3:
extends:
file: docker-compose.opensearch.base.yml
service: opensearch
hostname: opensearch-node-mitopen-3
environment:
- "node.name=opensearch-node-mitopen-3"
- "discovery.seed_hosts=opensearch-node-mitopen-1,opensearch-node-mitopen-2,opensearch-node-mitopen-3"
- "cluster.initial_cluster_manager_nodes=opensearch-node-mitopen-1,opensearch-node-mitopen-2,opensearch-node-mitopen-3"
volumes:
- opensearch-cluster-data3:/usr/share/opensearch/data
ports:
- 9102:9200 # REST API
- 9502:9600 # Performance Analyzer
volumes:
opensearch-cluster-data1:
opensearch-cluster-data2:
opensearch-cluster-data3: