-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
152 lines (139 loc) · 3.91 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
version: '2'
services:
prometheus:
user: $PGUSER
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./prometheus-central/etc/prometheus:/etc/prometheus
- ./prometheus-central/db:/prometheus
#command:
# - '--web.enable-lifecycle'
links:
- dc1-prometheus
- dc2-prometheus
- alertmanager
dc1-prometheus:
user: $PGUSER
image: prom/prometheus:latest
ports:
- "9091:9090"
volumes:
- ./datacenter-1/prometheus/etc/prometheus:/etc/prometheus
- ./datacenter-1/prometheus/prometheus:/prometheus
#command:
# - '--web.enable-lifecycle'
links:
- dc1-node0
- dc1-node1
- alertmanager
dc2-prometheus:
user: $PGUSER
image: prom/prometheus:latest
ports:
- "9092:9090"
volumes:
- ./datacenter-2/prometheus/etc/prometheus:/etc/prometheus
- ./datacenter-2/prometheus/prometheus:/prometheus
#command:
# - '--web.enable-lifecycle'
links:
- dc2-node2
- dc2-node3
- alertmanager
grafana:
user: $PGUSER
image: grafana/grafana:latest
ports:
- "3000:3000"
links:
- prometheus
- dc1-prometheus
- dc2-prometheus
- mailserver
volumes:
- ./grafana/etc/grafana:/etc/grafana
- ./grafana/var/lib/grafana:/var/lib/grafana
- ./grafana/data:/data
environment:
- GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource,grafana-azure-monitor-datasource,grafana-kubernetes-app,jdbranham-diagram-panel,snuids-trafficlights-panel,btplc-trend-box-panel
- GF_PATH_DATA=/data
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_allow_sign_up=true
- GF_USERS_allow_org_create=true
- GF_ANALYTICS_reporting_enabled=false
- GF_SMTP_enabled=false
- GF_SMTP_host=postfix
dc1-node0:
user: $PGUSER
image: quay.io/prometheus/node-exporter:latest
privileged: false
restart: unless-stopped
volumes:
- ./datacenter-1/node0/import:/import:ro
#deactivated for windows docker hosts
# - /proc:/host/proc:ro
# - /sys:/host/sys:ro
# - /:/rootfs:ro
ports:
- "9100:9100"
command:
- '--collector.textfile.directory=/import'
# deactivated for windows docker hosts
# - '--path.procfs=/host/proc'
# - '--path.sysfs=/host/sys'
# - '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
dc1-node1:
user: $PGUSER
image: prom/node-exporter:latest
volumes:
- ./datacenter-1/node1/import:/import:ro
ports:
- "9101:9100"
command:
- '--collector.textfile.directory=/import'
dc2-node2:
user: $PGUSER
image: quay.io/prometheus/node-exporter:latest
volumes:
- ./datacenter-2/node2/import:/import:ro
ports:
- "9102:9100"
command:
- '--collector.textfile.directory=/import'
dc2-node3:
user: $PGUSER
build: ./datacenter-2/node3CustomExporter
privileged: false
ports:
- "9103:9100"
alertmanager:
user: $PGUSER
image: prom/alertmanager:latest
volumes:
- ./alertmanager/etc/alertmanager:/etc/alertmanager:rw
ports:
- "9093:9093"
links:
- mailserver
mailserver:
image: greenmail/standalone:1.6.0-SNAPSHOT
environment:
# Enable GreenMail verbose mode
- GREENMAIL_OPTS=-Dgreenmail.setup.test.all -Dgreenmail.hostname=0.0.0.0 -Dgreenmail.auth.disabled
roundcube:
image: roundcube/roundcubemail
ports:
- "9080:80"
links:
- mailserver
environment:
- ROUNDCUBEMAIL_DEFAULT_HOST=mailserver
- ROUNDCUBEMAIL_DEFAULT_PORT=3143
- ROUNDCUBEMAIL_SMTP_SERVER=mailserver
- ROUNDCUBEMAIL_SMTP_PORT=3025
#volumes:
# - ./mailserver:/tmp/maildev:rw
#next: docker pull prom/blackbox-exporter