update
This commit is contained in:
21
logstash6/Demo/SingleNode/README.md
Normal file
21
logstash6/Demo/SingleNode/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# 部署 logstash6
|
||||
|
||||
- 为域名 x1.xx.com 和 x2.xx.com 申请 ssl 证书,并在每月的 31 号晚上十一点更新一次
|
||||
- 根据实际环境修改
|
||||
- docker-compose.yml
|
||||
|
||||
- 创建目录
|
||||
```
|
||||
grep '\<source:' docker-compose.yml | cut -d: -f2 | xargs mkdir -p
|
||||
```
|
||||
|
||||
- 启动
|
||||
```
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
- 创建定时任务
|
||||
```
|
||||
0 23 31 * * docker-compose -f /compose/docker-compose.yml up -d letsencrypt
|
||||
```
|
||||
|
23
logstash6/Demo/SingleNode/docker-compose.yml
Normal file
23
logstash6/Demo/SingleNode/docker-compose.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
logstash:
|
||||
image: harbor.colben.cn/general/logstash:6
|
||||
container_name: logstash
|
||||
restart: "on-failure"
|
||||
stop_grace_period: 2m
|
||||
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/offline-plugins
|
||||
target: /opt/es/offline-plugins
|
||||
|
Reference in New Issue
Block a user