forked from cfpb/grasshopper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-full.yml
107 lines (96 loc) · 2.25 KB
/
docker-compose-full.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# production compose
# extend from docker-compose-common.yml
geocoder:
extends:
file: docker-compose-common.yml
service: geocoder
links:
- parser
- elasticsearch
- influxdb
environment: &MONITORED_JVM_ENV
IS_MONITORED: 'true'
INFLUXDB_HOST: &INFLUXDB_HOST influxdb
INFLUXDB_PORT: &INFLUXDB_PORT 8086
INFLUXDB_USER: &INFLUXDB_USER root
INFLUXDB_PASSWORD: &INFLUXDB_PASSWORD root
parser:
extends:
file: docker-compose-common.yml
service: parser
loader:
extends:
file: docker-compose-common.yml
service: loader
links:
- elasticsearch
elasticsearch:
extends:
file: docker-compose-common.yml
service: elasticsearch
ui:
extends:
file: docker-compose-common.yml
service: ui
links:
- geocoder
# services that are not extended
cadvisor:
image: google/cadvisor:0.16.0
ports:
- "9090:8080"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
links:
- influxdb
command: -storage_driver=influxdb -storage_driver_db=cadvisor -storage_driver_host=influxdb:8086
influxdb:
image: tutum/influxdb:0.8.8
ports:
- 8083:8083 # Admin Site
- 8086:8086 # API
environment:
# Extra auto-create magic provided by this image
PRE_CREATE_DB: "cadvisor;metrics"
grafana:
build: docker/grafana
ports:
- 3000:3000
links:
- influxdb
# Logspout setup taken from:
# https://github.com/gliderlabs/logspout#route-all-container-output-to-remote-syslog
logspout:
image: gliderlabs/logspout:master
ports:
- "8000:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock
links:
- logstash
environment:
LOGSPOUT: ignore
# Logstash only supports the older RFC 3164 syslog protocol
SYSLOG_FORMAT: rfc3164
# Use syslog+tcp:// if UDP is not supported
command: syslog://logstash:5514
logstash:
build: docker/logstash
expose:
- 5514
links:
- elasticsearch
environment:
LOGSPOUT: ignore
command: logstash --verbose -f /opt/grasshopper.conf -e 'input{ syslog{ port => 5514 } } output{ elasticsearch{ protocol => "http" host => "elasticsearch" } }'
kibana:
build: docker/kibana
environment:
LOGSPOUT: ignore
links:
- elasticsearch
ports:
- "5601:5601"