docker搭建es集群+kinbana+logstash,实现日志收集功能
docker-compose
version: '3.1'
services:
es1:
image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0
container_name: es1
ports:
- "9200:9200"
- "9300:9300"
networks:
- es-cluster
volumes:
- /data/yymagicer/es/data01:/usr/share/elasticsearch/data
environment:
- node.name=es1
- discovery.seed_hosts=es1
- cluster.initial_master_nodes=es1
- cluster.name=es-cluster
- bootstrap.memory_lock=true
-