-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelasticsearch.xml
More file actions
94 lines (94 loc) · 5.25 KB
/
elasticsearch.xml
File metadata and controls
94 lines (94 loc) · 5.25 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
<?xml version="1.0"?>
<Container version="2">
<Name>elasticsearch</Name>
<Repository>ddarek/elasticsearch</Repository>
<Registry>https://hub.docker.com/r/ddarek/elasticsearch/Dockerfile/</Registry>
<Network>bridge</Network>
<MyIP/>
<Shell>bash</Shell>
<Privileged>false</Privileged>
<Support>https://forums.unraid.net/topic/79125-support-foxxmd-elasticsearch</Support>
<Project>https://www.elastic.co/</Project>
<Overview>
Elasticsearch with instructions for installation on unraid. [br][br]
[b]Default Elasticsearch version is 6.6.2[/b][br]
To change version simply edit the version tag in the repository field to an available version on dockerhub. [b]This template not tested on alpine images.[/b][br][br]
[span style='color: #E80000;'][b]Directions below MUST be used in order to get Elasticsearch 5 and above working correctly.[/b][/span] Check support thread for more information.[br]
[b][span style='color: #E80000;']Directions:[/span][/b][br]
1. Install [b]CA User Scripts[/b][br]
2. Create a new script named [b]vm.max_map_count[/b][br]
3. Contents of script as follows: [br][br]
[span style='font-family: monospace;']#!/bin/bash[br]
sysctl -w vm.max_map_count=262144[/span][br][br]
4. Set script schedule to [b]At Startup of Array[/b][br]
</Overview>
<Category>Other: Tools:Utilities</Category>
<WebUI>http://[IP]:[PORT:9200]/</WebUI>
<TemplateURL/>
<Icon>https://github.com/FoxxMD/unraid-docker-templates/raw/master/elasticsearch.png</Icon>
<ExtraParams>-e "ES_JAVA_OPTS"="-Xms512m -Xmx512m" --ulimit nofile=262144:262144</ExtraParams>
<PostArgs/>
<CPUset/>
<DateInstalled>1559766503</DateInstalled>
<DonateText/>
<DonateLink/>
<Description>
Elasticsearch with instructions for installation on unraid. [br][br]
[b]Default Elasticsearch version is 6.6.2[/b][br]
To change version simply edit the version tag in the repository field to an available version on dockerhub. [b]This template not tested on alpine images.[/b][br][br]
[span style='color: #E80000;'][b]Directions below MUST be used in order to get Elasticsearch 5 and above working correctly.[/b][/span] Check support thread for more information.[br]
[b][span style='color: #E80000;']Directions:[/span][/b][br]
1. Install [b]CA User Scripts[/b][br]
2. Create a new script named [b]vm.max_map_count[/b][br]
3. Contents of script as follows: [br][br]
[span style='font-family: monospace;']#!/bin/bash[br]
sysctl -w vm.max_map_count=262144[/span][br][br]
4. Set script schedule to [b]At Startup of Array[/b][br]
</Description>
<Networking>
<Mode>bridge</Mode>
<Publish>
<Port>
<HostPort>9200</HostPort>
<ContainerPort>9200</ContainerPort>
<Protocol>tcp</Protocol>
</Port>
<Port>
<HostPort>9300</HostPort>
<ContainerPort>9300</ContainerPort>
<Protocol>tcp</Protocol>
</Port>
</Publish>
</Networking>
<Data>
<Volume>
<HostDir>/mnt/user/appdata/elasticsearch/data</HostDir>
<ContainerDir>/usr/share/elasticsearch/data</ContainerDir>
<Mode>rw</Mode>
</Volume>
<Volume>
<HostDir>/mnt/cache/appdata/elastic/</HostDir>
<ContainerDir>/usr/share/elasticsearch/config</ContainerDir>
<Mode>rw</Mode>
</Volume>
<Volume>
<HostDir>/mnt/cache/elastic/logs</HostDir>
<ContainerDir>/usr/share/elasticsearch/logs</ContainerDir>
<Mode>rw</Mode>
</Volume>
</Data>
<Environment>
<Variable>
<Value>single-node</Value>
<Name>discovery.type</Name>
<Mode/>
</Variable>
</Environment>
<Labels/>
<Config Name="Data" Target="/usr/share/elasticsearch/data" Default="/mnt/user/appdata/elasticsearch/data" Mode="rw" Description="Directory where ES data is persisted" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/elasticsearch/data</Config>
<Config Name="Config" Target="/usr/share/elasticsearch/config" Default="/mnt/user/appdata/elasticsearch/config" Mode="rw" Description="Container Path: /usr/share/elasticsearch/config/" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/appdata/elasticsearch/config</Config>
<Config Name="Logs" Target="/usr/share/elasticsearch/logs" Default="/mnt/user/appdata/elasticsearch/logs" Mode="rw" Description="Container Path: /usr/share/elasticsearch/logs/" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/appdata/elasticsearch/logs</Config>
<Config Name="REST API Port" Target="9200" Default="9200" Mode="tcp" Description="Host port exposed for REST HTTP interface." Type="Port" Display="always" Required="true" Mask="false">9200</Config>
<Config Name="Nodes Communication Port" Target="9300" Default="9300" Mode="tcp" Description="Host port exposed for node communication." Type="Port" Display="always" Required="true" Mask="false">9300</Config>
<Config Name="Discovery Type" Target="discovery.type" Default="single-node" Mode="" Description="Container Variable: discovery.type" Type="Variable" Display="always" Required="true" Mask="false">single-node</Config>
</Container>