Skip to content

Commit 894f4e2

Browse files
authored
Merge pull request #9 from OpenSesame/os-rss-patch-1
Update README.md
2 parents 47eebc5 + 5f55ef3 commit 894f4e2

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,41 @@ end
7575
client = ElasticsearchClient.Client(http_client=Auth)
7676
```
7777

78+
## How to install Elasticsearch locally?
79+
80+
The easiest way is to use a Docker container. If you have [Docker Desktop](https://www.docker.com/products/docker-desktop/), then just copy the the `docker-compose.yml`:
81+
```yaml
82+
version: '3.8'
83+
services:
84+
es01:
85+
image: 'docker.elastic.co/elasticsearch/elasticsearch:8.8.2'
86+
ports:
87+
- '0.0.0.0:9200:9200'
88+
volumes:
89+
- esdata:/usr/share/elasticsearch/data
90+
restart: always
91+
environment:
92+
- node.name=es01
93+
- cluster.name=es_local_claster
94+
- cluster.initial_master_nodes=es01
95+
- bootstrap.memory_lock=true
96+
- xpack.security.enabled=false
97+
mem_limit: 1073741824
98+
ulimits:
99+
memlock:
100+
soft: -1
101+
hard: -1
102+
volumes:
103+
esdata:
104+
driver: local
105+
106+
```
107+
108+
and run the `docker-compose up` command in the directory containing that file.
109+
110+
If you want to configure a cluster [see full instructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker)
111+
112+
78113
## What's next?
79114

80115
More information about usage can be found in the [documentation](https://opensesame.github.io/ElasticsearchClient.jl).

0 commit comments

Comments
 (0)