-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.monitoring-tmpl.yml
97 lines (90 loc) · 2.44 KB
/
docker-compose.monitoring-tmpl.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
#################################################################################
# Copyright (c) 2014-2019 WANdisco
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Apache License, Version 2.0
#
################################################################################
#
# Note: while version 3.7 is technically compatible with Docker 18.06 and
# higher, this project was tested with only Docker 18.09 as of 2019-08-06.
#
################################################################################
version: "3.7"
services:
nagios:
image: wandisco/nagios:4.4.6-v0.11
restart: unless-stopped
volumes:
- nagios-var:/opt/nagios/var
- nagiosgraph-var:/opt/nagiosgraph/var
- logging-${ZONE_A_NAME}:/logs/${ZONE_A_NAME}
- logging-${ZONE_B_NAME}:/logs/${ZONE_B_NAME}
env_file:
- "${COMMON_ENV}"
environment:
- LOG_ERROR_CRITICAL_THRESHOLD=1
- FUSION_LICENSE_EXPIRE_WARNING=60
- FUSION_LICENSE_EXPIRE_CRITICAL=30
- FUSION_LICENSE_USAGE_PERCENT_WARNING=75
- FUSION_LICENSE_USAGE_PERCENT_CRITICAL=90
ports:
- 18081:80
networks:
- fusion
collectd-host:
image: wandisco/collectd:v0.4
environment:
- GRAPHITE_HOST=localhost
- GRAPHITE_PORT=2003
- HOST_NAME=localhost
restart: unless-stopped
network_mode: host
collectd-bridge:
image: wandisco/collectd:v0.4
env_file:
- "common.env"
environment:
- ENABLE_JMX=1
- GRAPHITE_HOST=graphite
- GRAPHITE_PORT=2003
- HOST_NAME=collectd-bridge
restart: unless-stopped
networks:
- fusion
graphite:
image: graphiteapp/graphite-statsd:1.1.7-6
restart: unless-stopped
env_file:
- "${COMMON_ENV}"
ports:
- 2003:2003
- 18082:80
networks:
- fusion
grafana:
image: wandisco/grafana:7.1.2-v0.6
restart: unless-stopped
volumes:
- grafana-storage:/var/lib/grafana
env_file:
- "${COMMON_ENV}"
environment:
- GF_SERVER_HTTP_PORT=18083
- GF_LOG_MODE=console file
- GRAPHITE_HOST=graphite
- GRAPHITE_PORT=80
ports:
- 18083:18083
networks:
- fusion
volumes:
nagios-var:
nagiosgraph-var:
grafana-storage:
logging-${ZONE_A_NAME}:
logging-${ZONE_B_NAME}: