-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
178 lines (178 loc) · 4.75 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
version: '2'
services:
play-proxy:
image: monitoringartist/play-proxy:latest
volumes:
- /etc/localtime:/etc/localtime:ro
ports:
- 80:80
links:
- play-zabbix:play-zabbix
- play-grafana:play-grafana
- play-vector:play-vector
- play-cadvisor:play-cadvisor
- play-elasticsearch:play-elasticsearch
- play-kibana:play-kibana
- play-prometheus:play-prometheus
- play-netdata:play-netdata
depends_on:
- play-zabbix
- play-grafana
- play-vector
- play-cadvisor
- play-elasticsearch
- play-kibana
- play-prometheus
- play-netdata
play-zabbix-db:
image: monitoringartist/zabbix-db-mariadb:latest
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
- MARIADB_USER=zabbix
- MARIADB_PASS=my_password
play-zabbix:
image: monitoringartist/zabbix-xxl:latest
depends_on:
- play-zabbix-db
volumes:
- /etc/localtime:/etc/localtime:ro
links:
- play-zabbix-db:zabbix.db
environment:
- ZS_DBHost=zabbix.db
- ZS_DBUser=zabbix
- ZS_DBPassword=my_password
- XXL_zapix=true
- XXL_grapher=true
play-zabbix-agent:
image: monitoringartist/dockbix-agent-xxl-limited:latest
privileged: true
network_mode: "host"
volumes:
- /:/rootfs
- /var/run:/var/run
play-grafana:
image: monitoringartist/grafana-xxl:latest
depends_on:
- play-grafana-data
volumes:
- /etc/localtime:/etc/localtime:ro
volumes_from:
- play-grafana-data
environment:
- GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s:/grafana/
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_USERS_ALLOW_ORG_CREATE=false
- GF_USERS_ALLOW_SIGN_UP=false
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_SECURITY_ADMIN_USER=admin
ports:
- 3000:3000
links:
- play-zabbix:play-zabbix
- play-elasticsearch:play-elasticsearch
- play-prometheus:play-prometheus
depends_on:
- play-zabbix
- play-elasticsearch
- play-prometheus
play-grafana-data:
image: monitoringartist/play-grafana-data:latest
play-vector:
image: netflixoss/vector:latest
play-cadvisor:
image: google/cadvisor:latest
volumes:
- "/:/rootfs:ro"
- "/var/run:/var/run:rw"
- "/sys:/sys:ro"
- "/var/lib/docker/:/var/lib/docker:ro"
- /etc/localtime:/etc/localtime:ro
depends_on:
- play-zabbix-agent
- play-netdata
play-elasticsearch:
image: elasticsearch:latest
ports:
- "9200:9200"
environment:
ES_JAVA_OPTS: "-Xms1g -Xmx1g"
command: -E transport.host=localhost
play-kibana-config:
image: monitoringartist/play-kibana-config:latest
play-kibana:
image: kibana:latest
depends_on:
- play-kibana-config
volumes:
- /etc/localtime:/etc/localtime:ro
volumes_from:
- play-kibana-config
ports:
- 5601:5601
depends_on:
- play-elasticsearch
environment:
ELASTICSEARCH_URL: http://play-elasticsearch:9200
NODE_OPTIONS: "--max-old-space-size=600"
links:
- play-elasticsearch:play-elasticsearch
command: --config /etc/kibana/kibana.yml
play-logstash-config:
image: monitoringartist/play-logstash-config:latest
play-logstash:
image: logstash:latest
ports:
- 5000:5000
depends_on:
- play-elasticsearch
- play-logstash-config
volumes:
- /etc/localtime:/etc/localtime:ro
volumes_from:
- play-logstash-config
links:
- play-elasticsearch:play-elasticsearch
entrypoint: logstash -f /etc/logstash/conf.d/logstash.conf
play-logspout:
image: bekt/logspout-logstash
restart: on-failure
environment:
ROUTE_URIS: logstash+tcp://play-logstash:5000
LOGSTASH_TAGS: docker,playground
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- play-logstash
links:
- play-logstash:play-logstash
play-prometheus-config:
image: monitoringartist/play-prometheus-config:latest
play-prometheus:
image: prom/prometheus:latest
depends_on:
- play-cadvisor
- play-prometheus-config
volumes:
- /etc/localtime:/etc/localtime:ro
volumes_from:
- play-prometheus-config
links:
- play-cadvisor:play-cadvisor
- play-node-exporter:play-node-exporter
command:
- '-config.file=/etc/prometheus/prometheus.yml'
- '-storage.local.path=/prometheus'
- '-web.route-prefix=/prometheus'
play-node-exporter:
image: prom/node-exporter:latest
ports:
- 9100:9100
play-netdata:
image: titpetric/netdata:latest
volumes:
- "/proc:/host/proc:ro"
- "/sys:/host/sys:ro"
- "/var/run/docker.sock:/var/run/docker.sock"
- /etc/localtime:/etc/localtime:ro