File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 3
3
## Docker 单节点部署
4
4
5
5
- 官网:< https://hub.docker.com/_/elasticsearch >
6
+ - 官网列表:< https://www.docker.elastic.co/ >
7
+ - 阿里云支持版本:< https://data.aliyun.com/product/elasticsearch >
6
8
- 7.x:7.1.0
7
9
- 6.x:6.8.0
8
10
- 5.x:5.6.8
9
11
- 注意:docker 版本下 client.transport.sniff = true 是无效的。
12
+
13
+ #### 5.6.x
14
+
10
15
- ` vim ~/elasticsearch-5.6.8-docker.yml `
11
16
- 启动:` docker-compose -f ~/elasticsearch-5.6.8-docker.yml -p elasticsearch_5.6.8 up -d `
12
17
@@ -38,6 +43,40 @@ services:
38
43
```
39
44
40
45
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
+
41
80
-------------------------------------------------------------------
42
81
43
82
You can’t perform that action at this time.
0 commit comments