This commit is contained in:
2022-04-18 11:21:20 +08:00
commit 45a7af638f
210 changed files with 8997 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# 部署单节点 es
- 根据实际环境修改
- docker-compose.yml
- 创建目录
```
grep '\<source:' docker-compose.yml | cut -d: -f2 | xargs mkdir -p
```
- 启动
```
docker-compose up -d
```

View File

@@ -0,0 +1,35 @@
version: "3.7"
services:
es:
image: harbor.colben.cn/general/elasticsearch:7
container_name: es
restart: "on-failure"
stop_grace_period: 5m
privileged: true
environment:
ES_JAVA_OPTS: "-Xms8g -Xmx8g"
_CONF_network.host: 127.0.0.1
_CONF_http.port: 9200
_CONF_transport.port: 9300
_CONF_discovery.seed_hosts: '[127.0.0.1]'
_CONF_discovery.type: single-node
_CONF_xpack.security.enabled: "true"
network_mode: host
volumes:
- type: bind
source: ./es/config
target: /opt/es/config
- type: bind
source: ./es/data
target: /opt/es/data
- type: bind
source: ./es/logs
target: /opt/es/logs
- type: bind
source: ./es/plugins
target: /opt/es/plugins
- type: bind
source: ./es/offline-plugins
target: /opt/es/offline-plugins