-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-logspout.yml
74 lines (68 loc) · 1.77 KB
/
docker-compose-logspout.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
68
69
70
71
72
73
74
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/logstash-logspout.conf:/config-dir/logstash.conf:ro
image: vivekjuneja/logstash:6
ports:
- "5001:5000"
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/logstash-logspout.conf:/config-dir/logstash.conf:ro
image: vivekjuneja/logstash:6
ports:
- "5002:5000"
depends_on:
- elastic
haproxy:
environment:
- LOGSPOUT=ignore
volumes:
- ${PWD}/haproxy-config/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
image: haproxy
ports:
- "80:80"
depends_on:
- logstash1
- logstash2
logspout:
environment:
- LOGSPOUT=ignore
- ROUTE_URIS=logstash+tcp://haproxy:80
- DEBUG=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
image: vivekjuneja/logspout:3
depends_on:
- haproxy
kibana:
environment:
- LOGSPOUT=ignore
- ELASTICSEARCH_URL=http://elastic:9200
volumes:
- /var/run/docker.sock:/var/run/docker.sock
image: kibana:4.6.3
ports:
- "5601:5601"
depends_on:
- elastic