Skip to content

Instantly share code, notes, and snippets.

@dklenke
Created August 17, 2018 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dklenke/94cdb639847276023e343c9d88330861 to your computer and use it in GitHub Desktop.
Save dklenke/94cdb639847276023e343c9d88330861 to your computer and use it in GitHub Desktop.
version: '3.5'
services:
elasticsearch:
build:
context: elasticsearch/
args:
ELK_VERSION: $ELK_VERSION
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
ports:
- "9200:9200"
environment:
ES_JAVA_OPTS: "-Xmx2g -Xms2g"
http.host: 0.0.0.0
transport.host: 0.0.0.0
networks:
- elk
logstash:
build:
context: logstash/
args:
ELK_VERSION: $ELK_VERSION
volumes:
- /home/user/docker-elk/logstash/config/
- /home/user/docker-elk/logstash/pipeline/
ports:
- "5000:5000"
environment:
LS_JAVA_OPTS: "-Xmx2g -Xms2g"
networks:
- elk
depends_on:
- elasticsearch
kibana:
build:
context: kibana/
args:
ELK_VERSION: $ELK_VERSION
volumes:
- /home/user/docker-elk/kibana/config/kibana.yml
ports:
- "5601:5601"
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
networks:
- elk
depends_on:
- elasticsearch
networks:
elk:
name: elk_net
driver: bridge
input{
input {
beats {
type => beats
port => 5044
}
}
}
}
output{
elasticsearch{
hosts => "elasticsearch:9200"
index => "new"
}
stdout {
debug => true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment