mirror of
https://github.com/RemainderTime/spring-boot-base-demo.git
synced 2026-05-30 22:47:54 +08:00
chore(config): 删除 ELK Docker Compose 配置文件
- 移除 elasticsearch 服务配置(端口 9200) - 移除 kibana 服务配置(端口 5601) - 移除 logstash 服务配置(端口 4560) - 清理相关容器挂载卷和依赖关系配置
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
version: '3'
|
||||
services:
|
||||
elasticsearch:
|
||||
image: elasticsearch:6.4.0
|
||||
container_name: elasticsearch
|
||||
environment:
|
||||
- "cluster.name=elasticsearch" #设置集群名称为elasticsearch
|
||||
- "discovery.type=single-node" #以单一节点模式启动
|
||||
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" #设置使用jvm内存大小
|
||||
volumes:
|
||||
- /mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins #插件文件挂载
|
||||
- /mydata/elasticsearch/data:/usr/share/elasticsearch/data #数据文件挂载
|
||||
ports:
|
||||
- 9200:9200
|
||||
kibana:
|
||||
image: kibana:6.4.0
|
||||
container_name: kibana
|
||||
links:
|
||||
- elasticsearch:es #可以用es这个域名访问elasticsearch服务
|
||||
depends_on:
|
||||
- elasticsearch #kibana在elasticsearch启动之后再启动
|
||||
environment:
|
||||
- "elasticsearch.hosts=http://es:9200" #设置访问elasticsearch的地址
|
||||
ports:
|
||||
- 5601:5601
|
||||
logstash:
|
||||
image: logstash:6.4.0
|
||||
container_name: logstash
|
||||
volumes:
|
||||
- /mydata/logstash/logstash-springboot.conf:/usr/share/logstash/pipeline/logstash.conf #挂载logstash的配置文件
|
||||
depends_on:
|
||||
- elasticsearch #kibana在elasticsearch启动之后再启动
|
||||
links:
|
||||
- elasticsearch:es #可以用es这个域名访问elasticsearch服务
|
||||
ports:
|
||||
- 4560:4560
|
||||
@@ -1,14 +0,0 @@
|
||||
input {
|
||||
tcp {
|
||||
mode => "server"
|
||||
host => "0.0.0.0"
|
||||
port => 4560
|
||||
codec => json_lines
|
||||
}
|
||||
}
|
||||
output {
|
||||
elasticsearch {
|
||||
hosts => "es:9200"
|
||||
index => "springboot-logstash-%{+YYYY.MM.dd}"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user