forked from monasca/monasca-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
204 lines (187 loc) · 5.44 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
version: '3'
services:
memcached:
image: memcached:${MEMCACHED_VERSION}
environment:
LOGSTASH_FIELDS: "service=memcached"
influxdb:
image: influxdb:${INFLUXDB_VERSION}
environment:
LOGSTASH_FIELDS: "service=influxdb"
influxdb-init:
image: monasca/influxdb-init:${INFLUXDB_INIT_VERSION}
environment:
LOGSTASH_FIELDS: "service=influxdb-init"
depends_on:
- influxdb
# cadvisor will allow host metrics to be collected, but requires significant
# access to the host system
# if this is not desired, the following can be commented out, and the CADVISOR
# environment variable should be set to "false" in the `agent-collector`
# block - however no metrics will be collected
cadvisor:
image: google/cadvisor:${CADVISOR_VERSION}
environment:
LOGSTASH_FIELDS: "service=cadvisor"
volumes:
- "/:/rootfs:ro"
- "/var/run:/var/run:rw"
- "/sys:/sys:ro"
- "/var/lib/docker:/var/lib/docker:ro"
agent-forwarder:
image: monasca/agent-forwarder:${MON_AGENT_FORWARDER_VERSION}
environment:
NON_LOCAL_TRAFFIC: "true"
LOGSTASH_FIELDS: "service=monasca-agent-forwarder"
agent-collector:
image: monasca/agent-collector:${MON_AGENT_COLLECTOR_VERSION}
restart: on-failure
environment:
AGENT_HOSTNAME: "docker-host"
FORWARDER_URL: "http://agent-forwarder:17123"
CADVISOR: "true"
CADVISOR_URL: "http://cadvisor:8080/"
LOGSTASH_FIELDS: "service=monasca-agent-collector"
alarms:
image: monasca/alarms:${MON_ALARMS_VERSION}
environment:
LOGSTASH_FIELDS: "service=monasca-alarms"
depends_on:
- keystone
- monasca
zookeeper:
image: zookeeper:${ZOOKEEPER_VERSION}
environment:
LOGSTASH_FIELDS: "service=zookeeper"
restart: on-failure
kafka:
image: monasca/kafka:${MON_KAFKA_VERSION}
environment:
LOGSTASH_FIELDS: "service=kafka"
restart: on-failure
depends_on:
- zookeeper
kafka-watcher:
image: monasca/kafka-watcher:${MON_KAFKA_WATCHER_VERSION}
environment:
BOOT_STRAP_SERVERS: "kafka"
PROMETHEUS_ENDPOINT: "0.0.0.0:8080"
LOGSTASH_FIELDS: "service=kafka-watcher"
depends_on:
- kafka
ports:
- "18080:8080"
kafka-init:
image: monasca/kafka-init:${MON_KAFKA_INIT_VERSION}
environment:
ZOOKEEPER_CONNECTION_STRING: "zookeeper:2181"
KAFKA_DELETE_TOPIC_ENABLE: "true"
KAFKA_TOPIC_CONFIG: segment.ms=900000 # 15m
KAFKA_CREATE_TOPICS: "\
metrics:64:1,\
alarm-state-transitions:12:1,\
alarm-notifications:12:1,\
retry-notifications:3:1,\
events:12:1,\
kafka-health-check:1:1,\
60-seconds-notifications:3:1"
LOGSTASH_FIELDS: "service=kafka-init"
depends_on:
- zookeeper
mysql:
image: mysql:${MYSQL_VERSION}
environment:
MYSQL_ROOT_PASSWORD: secretmysql
LOGSTASH_FIELDS: "service=mysql"
mysql-init:
image: monasca/mysql-init:${MYSQL_INIT_VERSION}
environment:
MYSQL_INIT_DISABLE_REMOTE_ROOT: "false"
MYSQL_INIT_RANDOM_PASSWORD: "false"
LOGSTASH_FIELDS: "service=mysql-init"
keystone:
image: monasca/keystone:${MON_KEYSTONE_VERSION}
environment:
KEYSTONE_HOST: keystone
KEYSTONE_PASSWORD: secretadmin
KEYSTONE_DATABASE_BACKEND: mysql
KEYSTONE_MYSQL_HOST: mysql
KEYSTONE_MYSQL_USER: keystone
KEYSTONE_MYSQL_PASSWORD: keystone
KEYSTONE_MYSQL_DATABASE: keystone
LOGSTASH_FIELDS: "service=keystone"
depends_on:
- mysql
ports:
- "5000:5000"
- "35357:35357"
monasca-sidecar:
image: timothyb89/monasca-sidecar:${MON_SIDECAR_VERSION}
environment:
LOGSTASH_FIELDS: "service=monasca-sidecar"
monasca:
image: monasca/api:${MON_API_VERSION}
environment:
SIDECAR_URL: http://monasca-sidecar:4888/v1/ingest
LOGSTASH_FIELDS: "service=monasca-api"
depends_on:
- influxdb
- keystone
- mysql
- zookeeper
- kafka
- monasca-sidecar
- memcached
ports:
- "8070:8070"
monasca-persister:
image: monasca/persister:${MON_PERSISTER_VERSION}
environment:
LOGSTASH_FIELDS: "service=monasca-persister"
restart: on-failure
depends_on:
- monasca
- influxdb
- zookeeper
- kafka
thresh:
image: monasca/thresh:${MON_THRESH_VERSION}
environment:
NO_STORM_CLUSTER: "true"
WORKER_MAX_HEAP_MB: "256"
LOGSTASH_FIELDS: "service=monasca-thresh"
depends_on:
- zookeeper
- kafka
monasca-notification:
image: monasca/notification:${MON_NOTIFICATION_VERSION}
environment:
NF_PLUGINS: "webhook"
LOGSTASH_FIELDS: "service=monasca-notification"
depends_on:
- monasca
- zookeeper
- kafka
- mysql
grafana:
image: monasca/grafana:${MON_GRAFANA_VERSION}
environment:
GF_AUTH_BASIC_ENABLED: "false"
GF_USERS_ALLOW_SIGN_UP: "true"
GF_USERS_ALLOW_ORG_CREATE: "true"
GF_AUTH_KEYSTONE_ENABLED: "true"
GF_AUTH_KEYSTONE_AUTH_URL: http://keystone:5000
GF_AUTH_KEYSTONE_VERIFY_SSL_CERT: "false"
GF_AUTH_KEYSTONE_DEFAULT_DOMAIN: "Default"
LOGSTASH_FIELDS: "service=grafana"
ports:
- "3000:3000"
depends_on:
- keystone
- monasca
grafana-init:
image: monasca/grafana-init:${MON_GRAFANA_INIT_VERSION}
environment:
LOGSTASH_FIELDS: "service=grafana-init"
depends_on:
- grafana