mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-02 21:55:33 +02:00
update elk
This commit is contained in:
parent
d6665a1691
commit
4c038f859d
@ -1,16 +1,19 @@
|
|||||||
|
version: '3.5'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.0
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.0
|
||||||
ports:
|
ports:
|
||||||
- "9200:9200"
|
- "9200:9200"
|
||||||
- "9300:9300"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/usr/share/elasticsearch/data
|
- ./data:/usr/share/elasticsearch/data
|
||||||
environment:
|
environment:
|
||||||
- node.name=es1
|
- node.name=es1
|
||||||
- cluster.name=elk
|
- cluster.name=docker-cluster
|
||||||
- cluster.initial_master_nodes=es1
|
- cluster.initial_master_nodes=es1
|
||||||
- bootstrap.memory_lock=true
|
- bootstrap.memory_lock=true
|
||||||
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
|
- "ES_JAVA_OPTS=-Xms16g -Xmx16g"
|
||||||
ulimits:
|
ulimits:
|
||||||
memlock:
|
memlock:
|
||||||
soft: -1
|
soft: -1
|
||||||
@ -23,22 +26,21 @@ logstash:
|
|||||||
- "5044:5044"
|
- "5044:5044"
|
||||||
- "9600:9600"
|
- "9600:9600"
|
||||||
- "12201:12201/udp"
|
- "12201:12201/udp"
|
||||||
links:
|
depends_on:
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/logstash.yml:/usr/share/logstash/config/logstash.yml
|
- ./data/logstash.yml:/usr/share/logstash/config/logstash.yml
|
||||||
- ./data/pipeline:/usr/share/logstash/pipeline
|
- ./data/pipeline:/usr/share/logstash/pipeline
|
||||||
- /usr/share/logstash/vendor/bundle
|
|
||||||
environment:
|
environment:
|
||||||
- node.name=ls1
|
- node.name=ls1
|
||||||
- "LS_JAVA_OPTS=-Xms1g -Xmx1g"
|
- "LS_JAVA_OPTS=-Xms4g -Xmx4g"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
kibana:
|
kibana:
|
||||||
image: docker.elastic.co/kibana/kibana:7.3.0
|
image: docker.elastic.co/kibana/kibana:7.3.0
|
||||||
ports:
|
ports:
|
||||||
- "5601:5601"
|
- "5601:5601"
|
||||||
links:
|
depends_on:
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
environment:
|
environment:
|
||||||
SERVER_NAME: kibana
|
SERVER_NAME: kibana
|
||||||
@ -49,7 +51,7 @@ apm-server:
|
|||||||
image: docker.elastic.co/apm/apm-server:7.3.0
|
image: docker.elastic.co/apm/apm-server:7.3.0
|
||||||
ports:
|
ports:
|
||||||
- "8200:8200"
|
- "8200:8200"
|
||||||
links:
|
depends_on:
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/apm-server.yml:/usr/share/apm-server/apm-server.yml
|
- ./data/apm-server.yml:/usr/share/apm-server/apm-server.yml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user