mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 08:27:25 +00:00
Update software versions and fix security refs
This commit is contained in:
@@ -17,12 +17,12 @@ ELK (Elasticsearch,Logstash,Kibana) 是目前业界最流行的开源日志
|
||||
|
||||
#### 1. 编写 Compose 文件
|
||||
|
||||
1. 编写 `compose.yaml` (或 `docker-compose.yml`) 配置如下(示例基于 Elasticsearch 8.x,当前最新大版本为 9.x,请根据需要选择版本并查阅 [Elastic 官方文档](https://www.elastic.co/docs/) 确认配置兼容性):
|
||||
1. 编写 `compose.yaml` (或 `docker-compose.yml`) 配置如下(示例基于 Elasticsearch 9.x,请查阅 [Elastic 官方文档](https://www.elastic.co/docs/) 确认最新版本与配置兼容性):
|
||||
|
||||
```yaml
|
||||
services:
|
||||
elasticsearch:
|
||||
image: docker.elastic.co/elasticsearch/elasticsearch:8.17.0
|
||||
image: docker.elastic.co/elasticsearch/elasticsearch:9.3.3
|
||||
container_name: elasticsearch
|
||||
environment:
|
||||
- "discovery.type=single-node"
|
||||
@@ -36,7 +36,7 @@ services:
|
||||
- logging
|
||||
|
||||
kibana:
|
||||
image: docker.elastic.co/kibana/kibana:8.17.0
|
||||
image: docker.elastic.co/kibana/kibana:9.3.3
|
||||
container_name: kibana
|
||||
environment:
|
||||
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
|
||||
@@ -48,6 +48,7 @@ services:
|
||||
- logging
|
||||
|
||||
fluentd:
|
||||
# elasticsearch8 插件通过 REST API 与 ES 9.x 兼容
|
||||
image: fluent/fluentd-kubernetes-daemonset:v1.17-debian-elasticsearch8-1
|
||||
container_name: fluentd
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user