Skip to content

Instantly share code, notes, and snippets.

@modius
Created February 17, 2016 04:59
Show Gist options
  • Save modius/7d16da90d018ebeca3af to your computer and use it in GitHub Desktop.
Save modius/7d16da90d018ebeca3af to your computer and use it in GitHub Desktop.
ELK Stack DockerCloud
elasticsearch:
image: 'elasticsearch:1.5'
ports:
- '9200:9200'
logstash:
image: 'logstash'
command: 'logstash -e "input { syslog { port => 12345 type => "docker" } } output { elasticsearch { hosts => "elasticsearch" } }"'
expose:
- '12345/tcp'
- '12345/udp'
links:
- elasticsearch
logspout:
image: 'gliderlabs/logspout'
entrypoint: '/bin/sh'
command: '-c ''/bin/logspout syslog://$LOGSTASH_PORT_12345_UDP_ADDR:12345'''
deployment_strategy: every_node
volumes:
- '/var/run/docker.sock:/tmp/docker.sock'
links:
- logstash
kibana:
image: marcbachmann/kibana4
environment:
- ELASTICSEARCH=http://elasticsearch:9200
ports:
- '5601:5601'
links:
- elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment