1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/elk/docker-compose.yml

62 lines
1.5 KiB
YAML
Raw Normal View History

2020-08-18 09:45:13 +02:00
version: "3.8"
2018-01-06 15:38:57 +02:00
2019-08-04 09:02:27 +02:00
services:
2018-01-06 15:38:57 +02:00
2019-08-04 09:02:27 +02:00
elasticsearch:
2020-08-18 09:45:13 +02:00
image: docker.elastic.co/elasticsearch/elasticsearch:7.8.1
2019-08-04 09:02:27 +02:00
ports:
- "9200:9200"
volumes:
- ./data:/usr/share/elasticsearch/data
environment:
- node.name=es1
- cluster.name=docker-cluster
- cluster.initial_master_nodes=es1
- bootstrap.memory_lock=true
2020-08-19 09:27:40 +02:00
- script.painless.regex.enabled=true
2019-11-04 20:09:26 +02:00
- ES_JAVA_OPTS=-Xms8g -Xmx8g
2019-08-04 09:02:27 +02:00
ulimits:
memlock:
soft: -1
hard: -1
restart: unless-stopped
2019-01-30 11:40:44 +02:00
2019-08-04 09:02:27 +02:00
logstash:
2020-08-18 09:45:13 +02:00
image: docker.elastic.co/logstash/logstash:7.8.1
2019-08-04 09:02:27 +02:00
ports:
- "5044:5044"
- "9600:9600"
- "12201:12201/udp"
volumes:
2019-11-04 20:09:26 +02:00
- ./data/pipelines.yml:/usr/share/logstash/config/pipelines.yml
- ./data/pipelines:/usr/share/logstash/pipelines
2019-08-04 09:02:27 +02:00
environment:
- node.name=ls1
2019-11-04 20:09:26 +02:00
- xpack.monitoring.enabled=true
- xpack.monitoring.elasticsearch_hosts=[http://elasticsearch:9200]
- LS_JAVA_OPTS=-Xms4g -Xmx4g
depends_on:
- elasticsearch
2019-08-04 09:02:27 +02:00
restart: unless-stopped
kibana:
2020-08-18 09:45:13 +02:00
image: docker.elastic.co/kibana/kibana:7.8.1
2019-08-04 09:02:27 +02:00
ports:
- "5601:5601"
2019-11-04 20:09:26 +02:00
environment:
- SERVER_NAME=kibana
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
2019-08-04 09:02:27 +02:00
depends_on:
- elasticsearch
restart: unless-stopped
apm-server:
2020-08-18 09:45:13 +02:00
image: docker.elastic.co/apm/apm-server:7.8.1
2019-08-04 09:02:27 +02:00
ports:
- "8200:8200"
volumes:
- ./data/apm-server.yml:/usr/share/apm-server/apm-server.yml
2019-11-04 20:09:26 +02:00
depends_on:
- elasticsearch
2019-08-04 09:02:27 +02:00
restart: unless-stopped