Created
February 17, 2016 04:59
-
-
Save modius/7d16da90d018ebeca3af to your computer and use it in GitHub Desktop.
ELK Stack DockerCloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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