-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (59 loc) · 1.46 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '2'
services:
elastic:
environment:
- LOGSPOUT=ignore
image: elasticsearch:2.4.0
command: -Des.network.host=0.0.0.0 -Dhttp.cors.enabled=true -Dhttp.cors.allow-origin=*
ports:
- "9200:9200"
- "9300:9300"
logstash1:
environment:
- counter_seed=1
- counter_increment=3
- LOGSPOUT=ignore
command: /opt/logstash/bin/logstash agent -f /config-dir/logstash.conf
volumes:
- ${PWD}/logstash-config:/config-dir
image: vivekjuneja/logstash:6
ports:
- "5001:5000"
- "5001:5000/udp"
- "12203:12201/udp"
depends_on:
- elastic
logstash2:
environment:
- counter_seed=2
- counter_increment=3
- LOGSPOUT=ignore
command: /opt/logstash/bin/logstash agent -f /config-dir/logstash.conf
volumes:
- ${PWD}/logstash-config:/config-dir
image: vivekjuneja/logstash:6
ports:
- "5002:5000"
- "5002:5000/udp"
- "12202:12201/udp"
depends_on:
- elastic
kibana:
environment:
- LOGSPOUT=ignore
- ELASTICSEARCH_URL=http://elastic:9200
image: kibana:4.2.2
ports:
- "5601:5601"
depends_on:
- elastic
udpbalancer:
environment:
- LOGSPOUT=ignore
- servers=['logstash1:12201','logstash2:12201']
image: vivekjuneja/udprr:11
ports:
- "1111:1111/udp"
depends_on:
- logstash2
- logstash1