Skip to content

Commit e924e95

Browse files
author
zhang
committed
Elasticsearch
1 parent 8c97b20 commit e924e95

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

markdown-file/Elasticsearch-Base.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
## Docker 单节点部署
44

55
- 官网:<https://hub.docker.com/_/elasticsearch>
6+
- 官网列表:<https://www.docker.elastic.co/>
7+
- 阿里云支持版本:<https://data.aliyun.com/product/elasticsearch>
68
- 7.x:7.1.0
79
- 6.x:6.8.0
810
- 5.x:5.6.8
911
- 注意:docker 版本下 client.transport.sniff = true 是无效的。
12+
13+
#### 5.6.x
14+
1015
- `vim ~/elasticsearch-5.6.8-docker.yml`
1116
- 启动:`docker-compose -f ~/elasticsearch-5.6.8-docker.yml -p elasticsearch_5.6.8 up -d`
1217

@@ -38,6 +43,40 @@ services:
3843
```
3944

4045

46+
#### 6.7.x
47+
48+
- `vim ~/elasticsearch-6.7.2-docker.yml`
49+
- 启动:`docker-compose -f ~/elasticsearch-6.7.2-docker.yml -p elasticsearch_6.7.2 up -d`
50+
- `mkdir -p /data/docker/elasticsearch-6.7.2/data`
51+
52+
```
53+
version: '3'
54+
services:
55+
elasticsearch1:
56+
image: docker pull docker.elastic.co/elasticsearch/elasticsearch:6.7.2
57+
container_name: elasticsearch1
58+
environment:
59+
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
60+
- "cluster.name=elasticsearch"
61+
- "network.host=0.0.0.0"
62+
- "http.host=0.0.0.0"
63+
- "xpack.security.enabled=false"
64+
ulimits:
65+
memlock:
66+
soft: -1
67+
hard: -1
68+
nofile:
69+
soft: 65536
70+
hard: 65536
71+
ports:
72+
- 9200:9200
73+
- 9300:9300
74+
volumes:
75+
- /data/docker/elasticsearch-6.7.2/data:/usr/share/elasticsearch/data
76+
77+
```
78+
79+
4180
-------------------------------------------------------------------
4281

4382

0 commit comments

Comments
 (0)