-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-os2.yml
81 lines (77 loc) · 2.07 KB
/
docker-os2.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
services:
setup_elk:
image: opensearchproject/opensearch:${OS2_STACK_VERSION}
user: "0"
command: >
bash -c '
echo "All done!";
'
es01:
image: opensearchproject/opensearch:${OS2_STACK_VERSION}
volumes:
- os2_data01:/usr/share/opensearch/data
environment:
- cluster.name=${CLUSTER_NAME}
- node.name=es01
- discovery.seed_hosts=es01,es02,es03
- cluster.initial_cluster_manager_nodes=es01
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_SECURITY_PLUGIN=true"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: ${MEM_LIMIT}
es02:
depends_on:
- es01
image: opensearchproject/opensearch:${OS2_STACK_VERSION}
volumes:
- os2_data02:/usr/share/opensearch/data
environment:
- cluster.name=${CLUSTER_NAME}
- node.name=es02
- discovery.seed_hosts=es01,es02,es03
- cluster.initial_master_nodes=es01
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_SECURITY_PLUGIN=true"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: ${MEM_LIMIT}
es03:
depends_on:
- es02
image: opensearchproject/opensearch:${OS2_STACK_VERSION}
volumes:
- os2_data03:/usr/share/opensearch/data
environment:
- cluster.name=${CLUSTER_NAME}
- node.name=es03
- discovery.seed_hosts=es01,es02,es03
- cluster.initial_master_nodes=es01
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_SECURITY_PLUGIN=true"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: ${MEM_LIMIT}
kibana:
image: opensearchproject/opensearch-dashboards:${OS2_STACK_VERSION}
environment:
OPENSEARCH_HOSTS: '["http://es01:9200","http://es02:9200","http://es03:9200"]'
mem_limit: ${MEM_LIMIT}