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

44 lines
1014 B
YAML

elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.1.1
ports:
- "9200:9200"
volumes:
- ./data:/usr/share/elasticsearch/data
environment:
- node_name=elastic-search
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
ulimits:
memlock:
soft: -1
hard: -1
restart: unless-stopped
logstash:
image: docker.elastic.co/logstash/logstash:6.1.1
ports:
- "5044:5044"
- "9600:9600"
- "12201:12201/udp"
links:
- elasticsearch
volumes:
- ./data/logstash.yml:/usr/share/logstash/config/logstash.yml
- ./data/pipeline:/usr/share/logstash/pipeline
- /usr/share/logstash/vendor/bundle
environment:
LS_JAVA_OPTS: "-Xms1g -Xmx1g"
restart: unless-stopped
kibana:
image: docker.elastic.co/kibana/kibana:6.1.1
ports:
- "5601:5601"
links:
- elasticsearch
environment:
SERVER_NAME: kibana
ELASTICSEARCH_URL: http://elasticsearch:9200
restart: unless-stopped