Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
version: ‘2’
services:
elasticsearch:
build: elasticsearch/
volumes:
– ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
– ./elasticsearch/data:/usr/share/elasticsearch/data
ports:
– “9200:9200”
– “9300:9300”
environment:
ES_JAVA_OPTS: “-Xmx256m -Xms256m”
networks:
– elk
logstash:
build: logstash/
volumes:
– ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml
– ./logstash/pipeline:/usr/share/logstash/pipeline
restart: always
ports:
– “514:5000”
– “514:5000/udp”
environment:
LS_JAVA_OPTS: “-Xmx256m -Xms256m”
networks:
– elk
depends_on:
– elasticsearch
kibana:
build: kibana/
volumes:
– ./kibana/config/:/usr/share/kibana/config
ports:
– “5601:5601”
networks:
– elk
depends_on:
– elasticsearch
networks:
elk:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.