Created
February 9, 2020 13:12
-
-
Save KlimDos/3bc9af7c85e1cb24c3c93840c97e4164 to your computer and use it in GitHub Desktop.
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
version: '3.3' | |
services: | |
logspout: | |
image: gliderlabs/logspout:latest | |
command: 'udp://logstash:5000' | |
links: | |
- logstash | |
volumes: | |
- '/var/run/docker.sock:/tmp/docker.sock' | |
depends_on: | |
- elasticsearch | |
- logstash | |
- kibana | |
logstash: | |
image: logstash:7.5.2 | |
environment: | |
- STDOUT=true | |
- LOGSPOUT=ignore | |
links: | |
- elasticsearch | |
depends_on: | |
- elasticsearch | |
- kibana | |
command: 'logstash -e "input { udp { port => 5000 } } output { elasticsearch { hosts => elasticsearch } }"' | |
kibana: | |
image: kibana:7.5.2 | |
links: | |
- elasticsearch | |
environment: | |
- ELASTICSEARCH_URL=http://elasticsearch:9200 | |
- LOGSPOUT=ignore | |
ports: | |
- '5601:5601' | |
depends_on: | |
- elasticsearch | |
elasticsearch: | |
image: elasticsearch:7.5.2 | |
ports: | |
- '9200:9200' | |
- '9300:9300' | |
environment: | |
- LOGSPOUT=ignore | |
- discovery.type=single-node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment