springboot+elk日志
mkdir /data/elk cd /data/elk vim docker-compose.yml
version: '3.7'
services:
elasticsearch:
image: elasticsearch:7.7.0
container_name: elasticsearch
privileged: true
user: root
environment:
- cluster.name=elasticsearch
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms512m -Xmx512m
volumes:
- /data/elk/elasticsearch/plugins:/usr/share/elasticsearch/plugins
共有 0 条评论