Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Former-commit-id: 2049fa6e60fc6884fc428e4eac27e5b472170d86
  • Loading branch information
echo412 committed Aug 3, 2024
1 parent e1a6a86 commit d9b5994
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
24 changes: 6 additions & 18 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,14 @@ services:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.0
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.2
container_name: elasticsearch
environment:
- discovery.type=single-node
- "xpack.security.enabled=false"
- "ES_JAVA_OPTS=-Xms84m -Xmx512m"
- ES_JAVA_OPTS=-Xms1g -Xmx1g
volumes: # 此处是在linux环境下进行 记得给目录添加权限
- /data/es/data:/usr/share/elasticsearch/data
- /data/es/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml # 记得将项目根目录下的elasticsearch.yaml放到/data/es/config/目录下
ports:
- "9200:9200"
logstash:
image: docker.elastic.co/logstash/logstash:7.13.0
volumes:
- ./config/logstash:/usr/share/logstash/pipeline
environment:
- "xpack.monitoring.elasticsearch.hosts=http://elasticsearch:9200"
ports:
- "5044:5044"
kibana:
image: docker.elastic.co/kibana/kibana:7.13.0
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- i18n.locale=zh-CN
ports:
- "5601:5601"
- "9300:9300"
4 changes: 4 additions & 0 deletions elasticsearch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cluster.name: "docker-cluster"
network.host: 0.0.0.0
http.port: 9200
xpack.security.enabled: false

0 comments on commit d9b5994

Please sign in to comment.