Skip to content

Instantly share code, notes, and snippets.

@dboyd13
Created August 16, 2017 13:23
Show Gist options
  • Save dboyd13/cfd08a65aba77a285290989ddb7813ec to your computer and use it in GitHub Desktop.
Save dboyd13/cfd08a65aba77a285290989ddb7813ec to your computer and use it in GitHub Desktop.
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