Skip to content

Instantly share code, notes, and snippets.

@jarpy
Created August 21, 2018 22:49
Show Gist options
  • Save jarpy/5e57a5e33fe9ffee7f13d0da5c594996 to your computer and use it in GitHub Desktop.
Save jarpy/5e57a5e33fe9ffee7f13d0da5c594996 to your computer and use it in GitHub Desktop.
version: '3.5'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.3.2
ports:
- "9200:9200"
environment:
ES_JAVA_OPTS: "-Xmx2g -Xms2g"
http.host: 0.0.0.0
transport.host: 0.0.0.0
networks:
- elk
logstash:
image: docker.elastic.co/logstash/logstash-oss:6.3.2
volumes:
- ./logstash.conf:/usr/share/logstash/pipeline/logstash.conf
ports:
- "5000:5000"
environment:
LS_JAVA_OPTS: "-Xmx2g -Xms2g"
networks:
- elk
depends_on:
- elasticsearch
kibana:
image: docker.elastic.co/kibana/kibana-oss:6.3.2
ports:
- "5601:5601"
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
networks:
- elk
depends_on:
- elasticsearch
networks:
elk:
name: elk_net
driver: bridge
input {
heartbeat {
interval => 1
}
}
output {
elasticsearch {
hosts => "elasticsearch:9200"
index => "new"
}
stdout {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment