Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated README to markdown and added sinan #1

Open
wants to merge 144 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
8a69f51
updated for sinan usage as an option over rebar
tsloughter Nov 25, 2011
164edb3
added travis config
tsloughter Jan 25, 2012
9587c22
use rebar for tests
tsloughter Jan 25, 2012
56f857d
moved to master mochiweb mochijson2
tsloughter Jan 25, 2012
235827e
switched to R15B for travis
tsloughter Jan 25, 2012
9ca82c8
added source wrapping around shell instructions
tsloughter Jan 29, 2012
a61dc59
merged with irccloud
tsloughter Mar 2, 2012
7bee7d6
updated travis file to get rebar deps
tsloughter Mar 2, 2012
8580b36
fix start-dev script and remove gas and sinan
Jan 28, 2013
d1dc99a
allow get request to have body
Jan 28, 2013
d9aa148
remove erls_query_constructor
Jan 28, 2013
4bad07a
switch to hackney/jsx, simplify and add tests
Apr 14, 2013
f94ccf0
fix travis build to not run CT
Apr 15, 2013
a6f3d75
parse response and decode json
Apr 15, 2013
4156db3
fix dialyzer error
Apr 15, 2013
44f1d8e
support passing encoded json to index functions
Apr 20, 2013
cbfb0df
add ct to readme
Apr 20, 2013
1ce27dc
Support complex search queries
stefanrusek May 9, 2013
5f50af3
Merge pull request #6 from stefanrusek/master
tsloughter May 11, 2013
dec48d3
Fix bulk indexing
cstar Aug 1, 2013
ea363bb
Merge pull request #7 from cstar/master
tsloughter Aug 1, 2013
c1257e8
new param ctimeout, updated to hackney 0.4.4
marcelog Sep 26, 2013
384a776
Merge pull request #8 from marcelog/connect_timeout_and_hackney_0_4_4
tsloughter Oct 2, 2013
5f57031
closes #9, adding http_client_options
marcelog Oct 9, 2013
93bfa93
Merge pull request #10 from marcelog/marcelog_http_client_options_9
tsloughter Oct 9, 2013
21d5780
Change dependencies' protocol from git to https
bluesalt Dec 9, 2013
67791e7
Merge pull request #11 from bluesalt/dep_protocol
tsloughter Dec 9, 2013
b71e3c6
hackney:request can also return {error, ...}
Dec 10, 2013
cb5499d
Merge pull request #12 from arjan/master
tsloughter Dec 10, 2013
a138dc7
returning elasticsearch errors
marcelog Jan 17, 2014
f0af242
Merge pull request #13 from marcelog/marcelog_returning_elasticsearch…
tsloughter Jan 19, 2014
4ee2016
allowing payload for methods like DELETE.
marcelog Jan 18, 2014
10c753f
Merge pull request #14 from marcelog/marcelog_delete_by_query_with_body
tsloughter Jan 20, 2014
986cf5f
adding support for percolator feature
marcelog Feb 10, 2014
49afa03
Adding delete feature for percolator
marcelog Feb 11, 2014
57d0635
Merge pull request #15 from marcelog/marcelog_percolator_support
tsloughter Feb 25, 2014
5c458c8
Add upsert_doc/4 and /5
Mar 31, 2014
8ed3392
Merge pull request #16 from arjan/upsert
tsloughter Mar 31, 2014
9471a61
Upgrade hackney to 0.11.1
Apr 8, 2014
2be5c1b
Merge pull request #17 from arjan/master
tsloughter Apr 8, 2014
f6e8360
update hackney and jsx deps
tsloughter Apr 22, 2014
475d15f
add license
tsloughter Apr 23, 2014
8ae5137
New hackney return type
andreashasse Apr 24, 2014
1d1003f
Merge pull request #20 from anha0825/master
tsloughter Apr 24, 2014
5a81ba0
added support for creating mappings
Jun 16, 2014
37c1d5a
Merge pull request #21 from inaka/mapping
tsloughter Jun 17, 2014
2875a1d
Add _stats call.
Jul 17, 2014
1d5177e
Merge branch 'master' of github.com:tsloughter/erlastic_search
Jul 18, 2014
c2ff28f
Remove empty spec attribute from doc, crashes edoc.
Jul 18, 2014
2265c44
Delete index
Jul 18, 2014
0b421cf
Merge pull request #22 from anha0825/master
tsloughter Jul 18, 2014
d9e9d90
Update Hackney to 0.13.1
Aug 16, 2014
6a7eec9
Merge pull request #24 from arjan/master
tsloughter Aug 16, 2014
19eec4c
update to rebar3
tsloughter Jun 26, 2015
77d555c
Name and links
jlecour Sep 2, 2015
02db722
Merge pull request #26 from jlecour/name-and-links
tsloughter Sep 2, 2015
f964914
Elasticsearch is always in the foreground
jlecour Sep 2, 2015
67c0621
Merge pull request #27 from jlecour/elasticsearch-bin
tsloughter Sep 2, 2015
f0c5ceb
Fixed missing passing options to index_doc_with_id_opts
mdojwa Sep 23, 2015
a0af3b6
Merge pull request #29 from mdojwa/master
tsloughter Sep 25, 2015
de56ebb
update travis config
tsloughter Sep 25, 2015
86d4d60
version bump
tsloughter Sep 25, 2015
b7e8516
Adding `nodes_info/*` funs
wk8 Nov 10, 2015
3bac562
Merge pull request #30 from wk8/wk8/nodes_info
tsloughter Nov 10, 2015
2c8a65d
add automatic upload to hex of tags
tsloughter Nov 18, 2015
41da970
travis build tags too
tsloughter Nov 18, 2015
f376ffd
automatic hex publishign and use git tag for version
tsloughter Nov 18, 2015
46ffa96
Remove redundant braces for JSON input
t-mw Dec 7, 2015
f138f9b
Merge pull request #31 from t-mw/patch-1
tsloughter Dec 7, 2015
ab1023d
Support binary docs as input to 'put_mapping'
t-mw Dec 7, 2015
005493e
Merge pull request #32 from t-mw/patch-2
tsloughter Dec 7, 2015
cb26702
Making it possible to use another JSON library than `jsx`
wk8 Jan 28, 2016
de5613d
Wrapping the user-defined JSON library into a new `erls_json` module
wk8 Jan 30, 2016
edd4dad
Merge pull request #33 from wk8/wk8/i_wanna_use_jiffy
tsloughter Feb 4, 2016
f1ed6a3
Allowing asynchronous ES queries
wk8 Feb 21, 2016
f1b3b0a
Merge pull request #36 from wk8/wk8/allow_async_queries
tsloughter Feb 21, 2016
c7efa8b
Extend bulk operation to accept further information in the header row…
Mar 1, 2016
1cf1b82
Merge pull request #38 from synlay/feature/bulk_operation_with_header
tsloughter Mar 17, 2016
e266207
added option to configure host and port
Jul 31, 2014
8a4982c
Merge pull request #40 from inaka/master
tsloughter Mar 29, 2016
c2a4e07
Some index changes:
wk8 May 3, 2016
63b8828
Consolidating JSON encoding in one place
wk8 May 3, 2016
6f8fec2
Merge pull request #41 from wk8/wk8/index_changes
tsloughter May 8, 2016
bf90f00
update locks and docs in erls_config
tsloughter May 8, 2016
eac23f4
Added scroll support
PrasadBonthu Aug 18, 2016
071e420
Corrected the function name
PrasadBonthu Aug 19, 2016
90431cf
Corrected spec
PrasadBonthu Aug 19, 2016
3c01b35
Merge pull request #42 from PrasadBonthu/master
tsloughter Aug 19, 2016
33047e8
the app should not depend on jsx app
akovari Aug 24, 2016
a998ffa
Merge pull request #43 from altworx/master
tsloughter Aug 24, 2016
f437e30
add test case for ID preservation in bulk_index_docs/2
paulperegud Aug 26, 2016
173da24
don't ignore provided ID in bulk_index_doc/2
paulperegud Aug 26, 2016
50779fa
Merge pull request #45 from paulperegud/fix_bulk_index_docs
tsloughter Aug 26, 2016
dcf039d
Introduce get_doc_opts/5 as an equivalent to get_doc/4 including options
drobakowski Sep 30, 2016
bbe44f3
Merge pull request #47 from synlay/feature/get_doc_with_options
tsloughter Sep 30, 2016
77da96c
Introduce new search function 'multi_search/2'
drobakowski Oct 21, 2016
9a5c0e7
Merge pull request #48 from synlay/feature/multi_search
tsloughter Oct 22, 2016
5c458cb
Adding an `erlastic_search:create_index/3` fun to allow creating an i…
wk8 Dec 9, 2016
39f8450
Adding `get_mapping/*` and `get_settings/*` funs to retrieve mappings…
wk8 Dec 9, 2016
cb05390
Adding `index_exists/*` funs
wk8 Dec 9, 2016
71b049d
Merge pull request #50 from wk8/wk8/get_mappings_and_settings
tsloughter Dec 10, 2016
301de63
Merge pull request #49 from wk8/wk8/create_with_body
tsloughter Dec 10, 2016
02b88a9
Merge pull request #51 from wk8/wk8/index_exists
tsloughter Dec 13, 2016
0d15e64
Added "_mget" request support
PrasadBonthu Jan 1, 2017
36bc9a7
Merge branch 'master' into master
PrasadBonthu Jan 9, 2017
ee5c0d1
Corrected spec to clear dialyzer error
PrasadBonthu Jan 9, 2017
f1cc786
Add functionality to retrieve the settings and mapping for an index t…
stevepm Feb 14, 2017
316b6de
Update fun name, update docs, add one more test
stevepm Feb 14, 2017
48d013d
Unable to compile without updating deps
stevepm Feb 14, 2017
238ea20
Change get_templates to get_index_templates, also adds create_index_t…
stevepm Feb 17, 2017
4405ab2
Merge pull request #53 from stevepm/sm/mapping_and_settings_for_index…
tsloughter Feb 20, 2017
8008fd8
Merge pull request #52 from PrasadBonthu/master
tsloughter Feb 20, 2017
44760d2
Introduce new count API functions
drobakowski Mar 23, 2017
ef0a3c4
Include dependency hashes in rebar.lock generated by rebar3
drobakowski Mar 23, 2017
83b14f6
Add _reindex and _aliases endpoints
ddeboer Mar 27, 2017
974943d
Merge pull request #56 from driebit/reindex-alias
tsloughter Mar 27, 2017
6478cc5
update rebar3 and lock f file
tsloughter Mar 27, 2017
2a1c05b
Merge pull request #55 from synlay/feature/count_api_support
tsloughter Mar 27, 2017
37fc16c
add update doc support
chensongz Jul 9, 2017
0557d0f
Merge pull request #58 from chensongz/update-doc
tsloughter Jul 10, 2017
7a9e4cb
Add content-type to requests
facundoolano Aug 22, 2017
d1be594
Merge pull request #61 from lambdaclass/master
tsloughter Aug 22, 2017
cee5b66
add erlang 19 and 20 for test
getong Aug 23, 2017
0c0c53b
Merge pull request #62 from getong/add_erlang_19_20
tsloughter Aug 23, 2017
a7cdd73
Adding `index_template_exists/1,2` funs
wk8 Aug 28, 2017
629575f
Add bulk_index_docs with default params
laxmanpottimuthi Aug 29, 2017
df3acef
Merge pull request #66 from plakshman93/master
tsloughter Aug 29, 2017
41af00e
bulk api support
AnushaMorappanavar2024 Sep 8, 2017
08b1f4c
Merge pull request #68 from AnushaMorappanavar/adding_bulk_api_support
tsloughter Sep 10, 2017
f8f2960
Merge pull request #65 from wk8/wk8/template_exists
tsloughter Sep 10, 2017
ad281f3
more code and style changes for supporting bulk operation (#70)
AnushaMorappanavar2024 Sep 29, 2017
392e768
returns list (#71)
AnushaMorappanavar2024 Oct 4, 2017
9a207d1
New fun called put_setting (#73)
AnushaMorappanavar2024 Jul 20, 2018
a44d2dd
Beautification of README.md (#74)
Oct 6, 2018
0e24629
remove binary 'rebar3'
Oct 6, 2018
e699786
Update README.md
Oct 6, 2018
dcac36a
Update .travis.yml
Oct 6, 2018
c350f81
Merge pull request #75 from tsloughter/proposed/use-system-rebar3
Oct 6, 2018
8482766
use docker-compose to common test against elastic in travis (#76)
Oct 6, 2018
7612493
Use POST instead of DELETE request to `_delete_by_query` instead of `…
linuss Feb 14, 2019
52a8c10
test erlang 21, 22 (#77)
getong Oct 5, 2019
b7a5bb3
bump deps
tsloughter Feb 10, 2020
2f04223
remove hex script
tsloughter Feb 10, 2020
2c76e69
Deprecate all usage of jsx module (#81)
sashaafm Feb 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
*~
deps/
*.log
*.dump
ebin/
.rebar
_build
.eunit
deps
priv
*.o
*.beam
*.plt
.erlang.cookie
ebin
.depsolver_plt
_rel
erl_crash.dump
logs
log
.rebar3
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
sudo: false
install: true
language: erlang
otp_release:
- 22.0.7
- 21.1.2
- 20.3
- 19.3
- 18.3

before_install:
- docker-compose -f docker-compose.yml up -d
- until curl --silent -XGET --fail http://localhost:9200; do printf '.'; sleep 1; done

script:
- wget -c https://github.com/erlang/rebar3/releases/download/3.6.2/rebar3
- chmod +x rebar3
- ./rebar3 update
- ./rebar3 do ct, dialyzer

cache:
directories:
- $HOME/.cache/rebar3/
165 changes: 165 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.


This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.

0. Additional Definitions.

As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.

"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.

An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.

A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".

The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.

The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.

1. Exception to Section 3 of the GNU GPL.

You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.

2. Conveying Modified Versions.

If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:

a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or

b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.

3. Object Code Incorporating Material from Library Header Files.

The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:

a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the object code with a copy of the GNU GPL and this license
document.

4. Combined Works.

You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:

a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.

c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.

d) Do one of the following:

0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.

1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.

e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)

5. Combined Libraries.

You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:

a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.

b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.

6. Revised Versions of the GNU Lesser General Public License.

The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.

Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.

If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
13 changes: 0 additions & 13 deletions README

This file was deleted.

144 changes: 144 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
ErlasticSearch
======================================

An Erlang client for [Elasticsearch](https://www.elastic.co/products/elasticsearch).

Build and Run
-------------

Start a rebar3 shell

```shell
rebar3 shell
```

Create an index :

```erlang
erlastic_search:create_index(<<"index_name">>).
```
```
{ok, [{<<"ok">>,true},{<<"acknowledged">>,true}]}
```

Index a document :

```erlang
erlastic_search:index_doc(<<"index_name">>, <<"type">>, [{<<"key1">>, <<"value1">>}]).
```
```
{ok,[{<<"ok">>,true},
{<<"_index">>,<<"index_name">>},
{<<"_type">>,<<"type">>},
{<<"_id">>,<<"T-EzM_yeTkOEHPL9cN5B2g">>},
{<<"_version">>,1}]}
````

Index a document (providing a document id) :

```erlang
erlastic_search:index_doc_with_id(<<"index_name">>, <<"type">>, <<"id1">>, [{<<"key1">>, <<"value1">>}]).
```
```
{ok,[{<<"ok">>,true},
{<<"_index">>,<<"index_name">>},
{<<"_type">>,<<"type">>},
{<<"_id">>,<<"id1">>},
{<<"_version">>,2}]}
```

Search for a document :

```erlang
erlastic_search:search(<<"index_name">>, <<"type">>, <<"key1:value1">>).
```
```
{ok,[{<<"took">>,6},
{<<"timed_out">>,false},
{<<"_shards">>,
[{<<"total">>,5},{<<"successful">>,5},{<<"failed">>,0}]},
{<<"hits">>,
[{<<"total">>,3},
{<<"max_score">>,0.30685282},
{<<"hits">>,
[[{<<"_index">>,<<"index_name">>},
{<<"_type">>,<<"type">>},
{<<"_id">>,<<"T-EzM_yeTkOEHPL9cN5B2g">>},
{<<"_score">>,0.30685282},
{<<"_source">>,[{<<"key1">>,<<"value1">>}]}],
[{<<"_index">>,<<"index_name">>},
{<<"_type">>,<<"type">>},
{<<"_id">>,<<"id1">>},
{<<"_score">>,0.30685282},
{<<"_source">>,[{<<"key1">>,<<"value1">>}]}],
[{<<"_index">>,<<"index_name">>},
{<<"_type">>,<<"type">>},
{<<"_id">>,<<"MMNcfNHUQyeizDkniZD2bg">>},
{<<"_score">>,0.30685282},
{<<"_source">>,[{<<"key1">>,<<"value1">>}]}]]}]}]}
```

Testing
-------

In another terminal use docker-compose to start an Elasticsearch instance :

```bash
docker-compose up
```

For convenience, you can also start a Kibana instance for analysis/visualization :

```bash
docker-compose -f docker-compose.yml -f docker-compose-kibana.yml up
```

Run Common Test:

```bash
rebar3 ct
```

Using another JSON library than `jsx`
-------------------------------------

By default, we assume all the JSON erlang objects passed to us are in
[`jsx`](https://github.com/talentdeficit/jsx)'s representation.
And similarly, all of Elasticsearch's replies will be decoded with `jsx`.

However, you might already be using another JSON library in your project, which
might encode and decode JSONs from and to a different erlang representation.
For example, [`jiffy`](https://github.com/davisp/jiffy):

```
1> SimpleJson = <<"{\"key\":\"value\"}">>.
<<"{\"key\":\"value\"}">>
```

```
2> jiffy:decode(SimpleJson).
{[{<<"key">>,<<"value">>}]}
```

```
3> jsx:decode(SimpleJson).
[{<<"key">>,<<"value">>}]
```
In that case, you probably want `erlastic_search` to use your JSON
representation of choice instead of `jsx`'s.

You can do so by defining the `ERLASTIC_SEARCH_JSON_MODULE` environment
variable when compiling `erlastic_search`, for example:
```shell
export ERLASTIC_SEARCH_JSON_MODULE=jiffy
rebar compile
```

The only constraint is that `ERLASTIC_SEARCH_JSON_MODULE` should be the name
of a module, in your path, that defines the two following callbacks:

```erlang
-callback encode(erlastic_json()) -> binary().
-callback decode(binary()) -> erlastic_json().
```
where `erlastic_json()` is a type mapping to your JSON representation of choice.
8 changes: 8 additions & 0 deletions docker-compose-kibana.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '3'
services:
kibana:
image: kibana:5.0
links:
- elasticsearch
ports:
- 5601:5601
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3'
services:
elasticsearch:
image: elasticsearch:5.3.2-alpine
ports:
- 9200:9200
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
environment:
ES_JAVA_OPTS: "-Xms500m -Xmx500m"
volumes:
elasticsearch-data: {}

Loading