Skip to content

Instantly share code, notes, and snippets.

@KlimDos
Created February 9, 2020 13:12
Show Gist options
  • Save KlimDos/3bc9af7c85e1cb24c3c93840c97e4164 to your computer and use it in GitHub Desktop.
Save KlimDos/3bc9af7c85e1cb24c3c93840c97e4164 to your computer and use it in GitHub Desktop.
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